Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-08-04 20:52:31 +0300
committerJunio C Hamano <gitster@pobox.com>2023-08-04 20:52:31 +0300
commitf4a7c24c094cff87a4b5a02550b321591d847ca0 (patch)
tree41348fe0917b88039920cc972fa06950dadec8d5 /t
parentf9712d75e6389866efbe6ad918dc9773a8a880ad (diff)
parent835950bd19260426f664a9b0164c580db9f9aacb (diff)
Merge branch 'hy/blame-in-bare-with-contents'
"git blame --contents=file" has been taught to work in a bare repository. * hy/blame-in-bare-with-contents: blame: allow --contents to work with bare repo
Diffstat (limited to 't')
-rw-r--r--t/annotate-tests.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/t/annotate-tests.sh b/t/annotate-tests.sh
index 2ef70235b1..5e21e84f38 100644
--- a/t/annotate-tests.sh
+++ b/t/annotate-tests.sh
@@ -83,6 +83,15 @@ test_expect_success 'blame with --contents' '
check_count --contents=file A 2
'
+test_expect_success 'blame with --contents in a bare repo' '
+ git clone --bare . bare-contents.git &&
+ (
+ cd bare-contents.git &&
+ echo "1A quick brown fox jumps over the" >contents &&
+ check_count --contents=contents A 1
+ )
+'
+
test_expect_success 'blame with --contents changed' '
echo "1A quick brown fox jumps over the" >contents &&
echo "another lazy dog" >>contents &&