]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5521-pull-options.sh
builtin-fetch --all/--multi: propagate options correctly
[thirdparty/git.git] / t / t5521-pull-options.sh
index c18d82973fb75f3a17d4b7657f2168418c125457..84059d82d5061870e6932a4d82327110b4c89875 100755 (executable)
@@ -51,4 +51,25 @@ test_expect_success 'git pull -q -v' '
        test -s err)
 '
 
+test_expect_success 'git pull --force' '
+       mkdir clonedoldstyle &&
+       (cd clonedoldstyle && git init &&
+       cat >>.git/config <<-\EOF &&
+       [remote "one"]
+               url = ../parent
+               fetch = refs/heads/master:refs/heads/mirror
+       [remote "two"]
+               url = ../parent
+               fetch = refs/heads/master:refs/heads/origin
+       [branch "master"]
+               remote = two
+               merge = refs/heads/master
+       EOF
+       git pull two &&
+       test_commit A &&
+       git branch -f origin &&
+       git pull --all --force
+       )
+'
+
 test_done