Skip to content

Commit b602233

Browse files
authored
Use correct syntax for git diff (#915)
1 parent 45cc6f2 commit b602233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alibuild_helpers/git.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def setWriteUrlCmd(self, url):
7474
return ["remote", "set-url", "--push", "origin", url]
7575

7676
def diffCmd(self, directory):
77-
return "cd %s && git diff -r HEAD && git status --porcelain" % directory
77+
return "cd %s && git diff HEAD && git status --porcelain" % directory
7878

7979
def checkUntracked(self, line):
8080
return line.startswith("?? ")

0 commit comments

Comments
 (0)