Skip to content

Commit 50f4d7a

Browse files
committed
Need --decorate option to git log.
1 parent f33772a commit 50f4d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/glassfish/copyright/AbstractCopyright.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ private static String lastChangedHg(String file) throws IOException {
915915

916916
private static String lastChangedGit(String file) throws IOException {
917917
ProcessBuilder pb = new ProcessBuilder("git", "log", "-n", "1",
918-
"--date=local", file);
918+
"--decorate", "--date=local", file);
919919
pb.redirectErrorStream(true);
920920
Process p = pb.start();
921921
p.getOutputStream().close();

0 commit comments

Comments
 (0)