diff options
-rwxr-xr-x | bin/pkg | 2 | ||||
-rwxr-xr-x | include/pkglist | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -144,7 +144,7 @@ progress () { vcs_to_list () { if [[ -d $1/.git ]] { echo -n "$1 git " - git --git-dir=$1/.git log | fgrep commit | head -n 1 | cut -d ' ' -f 2 + git --git-dir=$1/.git log -n 1 | fgrep commit | cut -d ' ' -f 2 } else { warn "Unsupported or no repository: $1\n" } diff --git a/include/pkglist b/include/pkglist index f4474ff..a727587 100755 --- a/include/pkglist +++ b/include/pkglist @@ -13,10 +13,10 @@ for i in *(/,@); { if [[ -d $i/.git ]] { if (( newmode )) { echo -n "$i git " - git --git-dir=$i/.git log | fgrep commit | head -n 1 | cut -d ' ' -f 2 + git --git-dir=$i/.git log -n 1 | fgrep commit | cut -d ' ' -f 2 } else { echo -n "$i git " >> .list - git --git-dir=$i/.git log | fgrep commit | head -n 1 | cut -d ' ' -f 2 >> .list + git --git-dir=$i/.git log -n 1 | fgrep commit | cut -d ' ' -f 2 >> .list } } else { echo "$i: Unsupported or no repository" >&2 |