sync, merge: Added --allow-unrelated-histories option
Which is the same as the git merge option. After last commit, this turns out to be needed in the test suite, and when doing git-annex import from special remote, followed by a git-annex merge. Sponsored-by: Svenne Krap on Patreon
This commit is contained in:
parent
b6bea0d3f2
commit
3d50b47ded
7 changed files with 67 additions and 34 deletions
2
Test.hs
2
Test.hs
|
@ -1983,7 +1983,7 @@ test_export_import_subdir = intmpclonerepo $ do
|
|||
testimport = do
|
||||
origbranch <- annexeval origBranch
|
||||
git_annex "import" [origbranch++":"++subdir, "--from", "foo"] "import of subdir"
|
||||
git_annex "merge" ["foo/master"] "git annex merge foo/master"
|
||||
git_annex "merge" ["foo/master", "--allow-unrelated-histories"] "git annex merge foo/master"
|
||||
|
||||
-- Make sure that import did not import the file to the top
|
||||
-- of the repo.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue