We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fb5925 commit 3104120Copy full SHA for 3104120
t/t0002-gitfile.sh
@@ -116,4 +116,22 @@ test_expect_success 'setup_git_dir twice in subdir' '
116
)
117
'
118
119
+test_expect_success 'enter_repo non-strict mode' '
120
+ test_create_repo enter_repo &&
121
+ (
122
+ cd enter_repo &&
123
+ test_tick &&
124
+ test_commit foo &&
125
+ mv .git .realgit &&
126
+ echo "gitdir: .realgit" >.git
127
+ ) &&
128
+ git ls-remote enter_repo >actual &&
129
+ cat >expected <<-\EOF &&
130
+ 946e985ab20de757ca5b872b16d64e92ff3803a9 HEAD
131
+ 946e985ab20de757ca5b872b16d64e92ff3803a9 refs/heads/master
132
+ 946e985ab20de757ca5b872b16d64e92ff3803a9 refs/tags/foo
133
+ EOF
134
+ test_cmp expected actual
135
+'
136
+
137
test_done
0 commit comments