Skip to content

Commit

Permalink
Fix #48, always use forward slash in shell scripts
Browse files Browse the repository at this point in the history
Took 7 minutes
  • Loading branch information
Jan Polák committed May 13, 2023
1 parent 5aea442 commit 8741fa2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/darkyen/GitIntegration.java
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private static String prepareCommitMessageHookContent (Path timeTrackerFile, Pat
}
}

return content.replace(DTT_TIME_RELATIVE_PATH_PLACEHOLDER, gitHooksDirectory.relativize(timeTrackerFile).toString());
return content.replace(DTT_TIME_RELATIVE_PATH_PLACEHOLDER, gitHooksDirectory.relativize(timeTrackerFile).toString().replace('\\', '/'));
}

private static final String PREPARE_COMMIT_MESSAGE_HOOK_NAME = "prepare-commit-msg";
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/darkyen/TimeTrackerPersistentState.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public final class TimeTrackerPersistentState {

public boolean gitIntegration = false;

/** Bit field recording which features did we suggest user to enable. */
/** Bit field recording which features did we suggest user to enable. */
public long naggedAbout = 0;

public String ideTimePattern = DEFAULT_IDE_TIME_PATTERN;
Expand Down

0 comments on commit 8741fa2

Please sign in to comment.