       expect(-> repo.getHead()).toThrow()
 
   describe ".getDiffStats(path)", ->
-    [repo, path, originalPathText] = []
+    [path, originalPathText] = []
 
     beforeEach ->
       repo = new Git(require.resolve('fixtures/git/working-dir'))

        expect(repo.isPathNew(path)).toBeFalsy()

  describe ".checkoutHead(path)", ->
    [repo, path1, path2, originalPath1Text, originalPath2Text] = []

    beforeEach ->
      repo = new Git(require.resolve('fixtures/git/working-dir'))

fs = require 'fs'

describe "Git", ->
  repo = null

  beforeEach ->
    fs.remove('/tmp/.git') if fs.isDirectory('/tmp/.git')

  afterEach ->
    repo.destroy() if repo?.repo?

  describe "@open(path)", ->
    it "returns null when no repository is found", ->
