Skip to content

Commit

Permalink
Resolve "." to actual file-path in one more place
Browse files Browse the repository at this point in the history
  • Loading branch information
centic9 committed Sep 24, 2023
1 parent 04cd3e8 commit 82f8943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/dstadler/jgitfs/JGitFS.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static void main(String... args) throws FuseException, IOException, Inter
if ("git".equals(name)) {
// use a different name than "git" for automatically finding the name
// for the mount
name = new File(argList.get(0)).getParentFile().getName();
name = new File(argList.get(0)).getCanonicalFile().getParentFile().getName();
}

System.out.println("Using mountpoint " + "/fs/" + name + " for repository at " + argList.get(0));
Expand Down

0 comments on commit 82f8943

Please sign in to comment.