t5505: fix "set-head --auto with ambiguous HEAD" test
[gitweb.git] / t / t5505-remote.sh
index 8f6e3922dce2b676221610d83a87c5b36d3bc5b6..197d3f763d1d5d490436d95e6db6dca18e84aee3 100755 (executable)
@@ -271,6 +271,7 @@ EOF
 test_expect_success 'set-head --auto fails w/multiple HEADs' '
        (
                cd test &&
+               git fetch two "refs/heads/*:refs/remotes/two/*" &&
                test_must_fail git remote set-head --auto two >output 2>&1 &&
                test_i18ncmp expect output
        )