summaryrefslogtreecommitdiff
path: root/t/t1301-shared-repo.sh
diff options
context:
space:
mode:
authorPierre Habouzit <madcoder@debian.org>2008-06-15 21:37:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-06-15 22:54:06 (GMT)
commit336d09daf288492946f0c51f071da11643f8363d (patch)
tree22065546651f109c587b83d2168dbc91935aa3a5 /t/t1301-shared-repo.sh
parent4744d72393defef27fb76f047c2fac53ff6fb9ff (diff)
downloadgit-336d09daf288492946f0c51f071da11643f8363d.zip
git-336d09daf288492946f0c51f071da11643f8363d.tar.gz
git-336d09daf288492946f0c51f071da11643f8363d.tar.bz2
Make git reflog expire honour core.sharedRepository.
Signed-off-by: Pierre Habouzit <madcoder@debian.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t1301-shared-repo.sh')
-rwxr-xr-xt/t1301-shared-repo.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/t/t1301-shared-repo.sh b/t/t1301-shared-repo.sh
index 5e4252a..6c78c8b 100755
--- a/t/t1301-shared-repo.sh
+++ b/t/t1301-shared-repo.sh
@@ -83,4 +83,19 @@ do
done
+test_expect_success 'git reflog expire honors core.sharedRepository' '
+ git config core.sharedRepository group &&
+ git reflog expire --all &&
+ actual="$(ls -l .git/logs/refs/heads/master)" &&
+ case "$actual" in
+ -rw-rw-*)
+ : happy
+ ;;
+ *)
+ echo Ooops, .git/logs/refs/heads/master is not 0662 [$actual]
+ false
+ ;;
+ esac
+'
+
test_done