mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-23 15:37:58 +02:00
Closes: https://bugs.gentoo.org/940692 Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
12 lines
298 B
Diff
12 lines
298 B
Diff
diff --git a/scripts/getgitcommit b/scripts/getgitcommit
|
|
index 6897091..d82a7e5 100755
|
|
--- a/scripts/getgitcommit
|
|
+++ b/scripts/getgitcommit
|
|
@@ -1,6 +1,6 @@
|
|
#!/bin/sh
|
|
|
|
-GIT=$(which git)
|
|
+GIT=$(command -v git)
|
|
if [ "x$GIT" != "x" ]
|
|
then
|
|
COMMIT=$(git log --pretty=format:%h -n 1 2>/dev/null)
|