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 e923eae commit fe4bc2aCopy full SHA for fe4bc2a
t/t5541-http-push.sh
@@ -89,15 +89,17 @@ test_expect_success 'used receive-pack service' '
89
'
90
91
test_expect_success 'non-fast-forward push fails' '
92
+ cd "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo.git &&
93
+ HEAD=$(git rev-parse --verify HEAD) &&
94
+
95
cd "$ROOT_PATH"/test_repo_clone &&
96
git checkout master &&
97
echo "changed" > path2 &&
98
git commit -a -m path2 --amend &&
99
- HEAD=$(git rev-parse --verify HEAD) &&
100
!(git push -v origin >output 2>&1) &&
101
(cd "$HTTPD_DOCUMENT_ROOT_PATH"/test_repo.git &&
- test $HEAD != $(git rev-parse --verify HEAD))
102
+ test $HEAD = $(git rev-parse --verify HEAD))
103
104
105
test_expect_success 'non-fast-forward push show ref status' '
0 commit comments