summaryrefslogtreecommitdiff
path: root/t/t5400-send-pack.sh
diff options
context:
space:
mode:
Diffstat (limited to 't/t5400-send-pack.sh')
-rwxr-xr-xt/t5400-send-pack.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/t5400-send-pack.sh b/t/t5400-send-pack.sh
index 8afb899..d831f8d 100755
--- a/t/t5400-send-pack.sh
+++ b/t/t5400-send-pack.sh
@@ -78,4 +78,13 @@ test_expect_success \
! diff -u .git/refs/heads/master victim/.git/refs/heads/master
'
+test_expect_success 'push with --keep' '
+ t=`cd victim && git-rev-parse --verify refs/heads/master` &&
+ git-update-ref refs/heads/master $t &&
+ : > foo &&
+ git add foo &&
+ git commit -m "one more" &&
+ git-send-pack --keep ./victim/.git/ master
+'
+
test_done