diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-16 12:35:47 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-16 12:35:47 +0200 |
commit | b30992d9ef667eda2d6e6964099c1c29e593bde0 (patch) | |
tree | 37d6a64bb1f1b76de09c09f226ae1d11b7c22797 /include/pkglist | |
parent | cbeefcb4b5df5cbc2c7ac822df6b9517ba6a37b1 (diff) |
pkglist: Added support for bare repos
Diffstat (limited to 'include/pkglist')
-rwxr-xr-x | include/pkglist | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/pkglist b/include/pkglist index eb705c8..9a101b0 100755 --- a/include/pkglist +++ b/include/pkglist @@ -15,6 +15,9 @@ for i in *(-/); { if [[ -d $i/.git ]] { echo -n "$i git " echo ${$(git --git-dir=$i/.git log -n 1)[2]} + } elif [[ -d $i/objects && -d $i/refs ]] { + echo -n "$ git " + echo ${$(git --git-dir=$i log -n 1)[2]} } else { echo "$i: Unsupported or no repository" >&2 } |