commit 725a2758037ef7d82f8198cc9909139379e8a86c
parent 44c9f8915e3c6430b3935e0a274eba348cc96a5b
Author: Georges Dupéron <jahvascriptmaniac+github@free.fr>
Date: Sat, 2 Oct 2010 01:32:17 +0200
Bogue quand git ls-files affiche plus d'une ligne.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-hist.sh b/git-hist.sh
@@ -51,7 +51,7 @@ help() {
echo -e "\e[1mq\e[m : quit"
}
-fullpath="$(git ls-files --full-name "$file")"
+fullpath="$(git ls-files --full-name "$file" | head -n 1)"
i=0
for ab in $(git log --oneline "$file" | cut -d ' ' -f 1 | tac); do
rev[i]="$ab"