summaryrefslogtreecommitdiff
path: root/bin/pkg
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-08 20:02:58 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-08 20:02:58 +0200
commit0ac96538b643238de0b99db7640e1c3ab18c4c06 (patch)
tree23829a5c05c21875e5faf0cd3386c0e6537c3988 /bin/pkg
parent9d61ea5ef6a154369a1855c5fda70b7b38bcd55f (diff)
pkglist: Use git log -n 1, so head -n 1 is not neccessary
Diffstat (limited to 'bin/pkg')
-rwxr-xr-xbin/pkg2
1 files changed, 1 insertions, 1 deletions
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"
}