Skip to content

Commit

Permalink
oops, missing trim()
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneMcC committed Jul 24, 2012
1 parent 1618a91 commit 2596e36
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified dist/jgit-describe.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/org/mdonoughe/JGitDescribeTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public File getGitDir(final File file) {
if (bits.length > 1) {
final File res;
// Is this a relative path or an absolute path?
if (bits[1].charAt(0) == '.') {
if (bits[1].trim().charAt(0) == '.') {
res = new File(file.getParent() + File.separatorChar + bits[1].trim());
} else {
res = new File(bits[1].trim());
Expand Down

0 comments on commit 2596e36

Please sign in to comment.