git-annex merge branch
* merge: When run with a branch parameter, merges from that branch. This is especially useful when using an adjusted branch, because it applies the same adjustment to the branch before merging it.
This commit is contained in:
parent
b90ee6dc52
commit
b87ea12b6b
7 changed files with 58 additions and 28 deletions
4
Test.hs
4
Test.hs
|
@ -1848,9 +1848,7 @@ test_export_import_subdir = intmpclonerepoInDirect $ do
|
|||
|
||||
testimport = do
|
||||
git_annex "import" ["master:"++subdir, "--from", "foo"] @? "import of subdir failed"
|
||||
up <- Git.Merge.mergeUnrelatedHistoriesParam
|
||||
let mergeps = [Param "merge", Param "foo/master", Param "-mmerge"] ++ maybeToList up
|
||||
boolSystem "git" mergeps @? "git merge foo/master failed"
|
||||
git_annex "merge" ["foo/master"] @? "git annex merge foo/master failed"
|
||||
|
||||
-- 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