]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/t5510-fetch.sh
fetch --prune: Run prune before fetching
[thirdparty/git.git] / t / t5510-fetch.sh
index 87e896d3a30c771f926032bfe1e6288463325a87..12674ac0980fdafd60037bdff8009bb02a6da14a 100755 (executable)
@@ -626,4 +626,18 @@ test_expect_success 'fetch --prune prints the remotes url' '
        test_cmp expect actual
 '
 
+test_expect_success 'branchname D/F conflict resolved by --prune' '
+       git branch dir/file &&
+       git clone . prune-df-conflict &&
+       git branch -D dir/file &&
+       git branch dir &&
+       (
+               cd prune-df-conflict &&
+               git fetch --prune &&
+               git rev-parse origin/dir >../actual
+       ) &&
+       git rev-parse dir >expect &&
+       test_cmp expect actual
+'
+
 test_done