commit 6218be7e09ae888f772b545d87de1c29453ae4e3 parent bb607f11acf5c96fd32ef4fb6eb5698f3d8a00f9 Author: Jan Pobříslo <ccx@te2000.cz> Date: Thu, 22 Feb 2024 11:26:15 +0100 Include HEAD when generating commit symlinks Diffstat:
M | sources/update-links | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sources/update-links b/sources/update-links @@ -4,7 +4,7 @@ mkdir -p by-commit || exit $? cd by-commit || exit $? for gitdir in ../*/.git; do d=$gitdir:h - (cd $d && git for-each-ref --format='%(objectname)') | while read commit; do + (cd $d && git for-each-ref --format='%(objectname)' && git show -s --pretty=format:%H%n) | while read commit; do [[ -L $commit ]] && continue ln -s -f $d $commit || exit $? done