path: root/t/
diff options
authorTay Ray Chuan <>2010-01-08 02:12:43 (GMT)
committerJunio C Hamano <>2010-01-10 07:34:10 (GMT)
commit4232826771d5bdc4cc0bd21188b6ee5f3e700a52 (patch)
tree2e314c980e28f780943de81b8aeb618b77766a24 /t/
parent20e8b465a53e651cc3f50bd60f39d577ecdb7722 (diff)
transport.c::transport_push(): make ref status affect return value
Use push_had_errors() to check the refs for errors and modify the return value. Mark the non-fast-forward push tests to succeed. Signed-off-by: Tay Ray Chuan <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 't/')
1 files changed, 2 insertions, 2 deletions
diff --git a/t/ b/t/
index 6d92196..979624d 100755
--- a/t/
+++ b/t/
@@ -88,7 +88,7 @@ test_expect_success 'used receive-pack service' '
test_cmp exp act
-test_expect_failure 'non-fast-forward push fails' '
+test_expect_success 'non-fast-forward push fails' '
cd "$ROOT_PATH"/test_repo_clone &&
git checkout master &&
echo "changed" > path2 &&
@@ -104,7 +104,7 @@ test_expect_success 'non-fast-forward push show ref status' '
grep "^ ! \[rejected\][ ]*master -> master (non-fast-forward)$" output
-test_expect_failure 'non-fast-forward push shows help message' '
+test_expect_success 'non-fast-forward push shows help message' '
grep \
"To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again. See the '"'non-fast-forward'"'