From 0ac96538b643238de0b99db7640e1c3ab18c4c06 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 8 Oct 2008 20:02:58 +0200 Subject: pkglist: Use git log -n 1, so head -n 1 is not neccessary --- bin/pkg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/pkg') diff --git a/bin/pkg b/bin/pkg index 8e8336d..bdfb007 100755 --- a/bin/pkg +++ b/bin/pkg @@ -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" } -- cgit v1.2.3