Skip to content

Commit d5a615e

Browse files
author
alexandresalome
committed
fix an error message
1 parent f8c6084 commit d5a615e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Gitonomy/Git/Repository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ private function initDir($gitDir, $workingDir = null)
145145
$workingDir = $gitDir;
146146
$gitDir = $gitDir.'/.git';
147147
} elseif (!is_dir($gitDir)) {
148-
throw new \InvalidArgumentException(sprintf('Directory "%s" does not exist or is not a directory', $dir));
148+
throw new \InvalidArgumentException(sprintf('Directory "%s" does not exist or is not a directory', $gitDir));
149149
}
150150

151151
$this->gitDir = $gitDir;

0 commit comments

Comments
 (0)