     [repo, filePath, newPath] = []
 
     beforeEach ->
-      workingDirPath = temp.mkdirSync('atom-working-dir')
-      fs.copySync(path.join(__dirname, 'fixtures', 'git', 'working-dir'), workingDirPath)
-      fs.renameSync(path.join(workingDirPath, 'git.git'), path.join(workingDirPath, '.git'))
+      workingDirPath = copyRepository()
       repo = new Git(workingDirPath)
       filePath = path.join(workingDirPath, 'a.txt')
       newPath = path.join(workingDirPath, 'new-path.txt')

Task = require '../src/task'

describe "Git", ->
  repo = null

  beforeEach ->

    [filePath, newPath] = []

    beforeEach ->
      workingDirPath = copyRepository()
      repo = new Git(workingDirPath)
      filePath = path.join(workingDirPath, 'a.txt')
      newPath = path.join(workingDirPath, 'new-path.txt')
