diff options
author | Junio C Hamano <gitster@pobox.com> | 2008-10-21 17:58:21 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-10-21 17:58:21 -0700 |
commit | ca6c06b2efe2f55c498670efcb419bce35678e03 (patch) | |
tree | 741239f028d57d825b8bbd66df8271ad0576bbe0 /t/t5510-fetch.sh | |
parent | a157400c972bbdeab2b5629658c99839c855f5ab (diff) | |
parent | b0ad11ea165e07308fc02a5091efbe2e2d22237c (diff) | |
download | git-ca6c06b2efe2f55c498670efcb419bce35678e03.tar.gz |
Merge branch 'js/maint-fetch-update-head'
* js/maint-fetch-update-head:
pull: allow "git pull origin $something:$current_branch" into an unborn branch
Fix fetch/pull when run without --update-head-ok
Conflicts:
t/t5510-fetch.sh
Diffstat (limited to 't/t5510-fetch.sh')
-rwxr-xr-x | t/t5510-fetch.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t5510-fetch.sh b/t/t5510-fetch.sh index 9aae4965da..9e679b402d 100755 --- a/t/t5510-fetch.sh +++ b/t/t5510-fetch.sh @@ -323,4 +323,16 @@ test_expect_success 'auto tag following fetches minimum' ' ) ' +test_expect_success 'refuse to fetch into the current branch' ' + + test_must_fail git fetch . side:master + +' + +test_expect_success 'fetch into the current branch with --update-head-ok' ' + + git fetch --update-head-ok . side:master + +' + test_done |