|
|
@ -82,7 +82,7 @@ public class RepoCommandTest extends RepositoryTestCase { |
|
|
|
super.setUp(); |
|
|
|
super.setUp(); |
|
|
|
|
|
|
|
|
|
|
|
defaultDb = createWorkRepository(); |
|
|
|
defaultDb = createWorkRepository(); |
|
|
|
Git git = new Git(defaultDb); |
|
|
|
try (Git git = new Git(defaultDb)) { |
|
|
|
JGitTestUtil.writeTrashFile(defaultDb, "hello.txt", "branch world"); |
|
|
|
JGitTestUtil.writeTrashFile(defaultDb, "hello.txt", "branch world"); |
|
|
|
git.add().addFilepattern("hello.txt").call(); |
|
|
|
git.add().addFilepattern("hello.txt").call(); |
|
|
|
oldCommitId = git.commit().setMessage("Initial commit").call().getId(); |
|
|
|
oldCommitId = git.commit().setMessage("Initial commit").call().getId(); |
|
|
@ -93,27 +93,31 @@ public class RepoCommandTest extends RepositoryTestCase { |
|
|
|
git.add().addFilepattern("hello.txt").call(); |
|
|
|
git.add().addFilepattern("hello.txt").call(); |
|
|
|
git.commit().setMessage("Second commit").call(); |
|
|
|
git.commit().setMessage("Second commit").call(); |
|
|
|
addRepoToClose(defaultDb); |
|
|
|
addRepoToClose(defaultDb); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
notDefaultDb = createWorkRepository(); |
|
|
|
notDefaultDb = createWorkRepository(); |
|
|
|
git = new Git(notDefaultDb); |
|
|
|
try (Git git = new Git(notDefaultDb)) { |
|
|
|
JGitTestUtil.writeTrashFile(notDefaultDb, "world.txt", "hello"); |
|
|
|
JGitTestUtil.writeTrashFile(notDefaultDb, "world.txt", "hello"); |
|
|
|
git.add().addFilepattern("world.txt").call(); |
|
|
|
git.add().addFilepattern("world.txt").call(); |
|
|
|
git.commit().setMessage("Initial commit").call(); |
|
|
|
git.commit().setMessage("Initial commit").call(); |
|
|
|
addRepoToClose(notDefaultDb); |
|
|
|
addRepoToClose(notDefaultDb); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
groupADb = createWorkRepository(); |
|
|
|
groupADb = createWorkRepository(); |
|
|
|
git = new Git(groupADb); |
|
|
|
try (Git git = new Git(groupADb)) { |
|
|
|
JGitTestUtil.writeTrashFile(groupADb, "a.txt", "world"); |
|
|
|
JGitTestUtil.writeTrashFile(groupADb, "a.txt", "world"); |
|
|
|
git.add().addFilepattern("a.txt").call(); |
|
|
|
git.add().addFilepattern("a.txt").call(); |
|
|
|
git.commit().setMessage("Initial commit").call(); |
|
|
|
git.commit().setMessage("Initial commit").call(); |
|
|
|
addRepoToClose(groupADb); |
|
|
|
addRepoToClose(groupADb); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
groupBDb = createWorkRepository(); |
|
|
|
groupBDb = createWorkRepository(); |
|
|
|
git = new Git(groupBDb); |
|
|
|
try (Git git = new Git(groupBDb)) { |
|
|
|
JGitTestUtil.writeTrashFile(groupBDb, "b.txt", "world"); |
|
|
|
JGitTestUtil.writeTrashFile(groupBDb, "b.txt", "world"); |
|
|
|
git.add().addFilepattern("b.txt").call(); |
|
|
|
git.add().addFilepattern("b.txt").call(); |
|
|
|
git.commit().setMessage("Initial commit").call(); |
|
|
|
git.commit().setMessage("Initial commit").call(); |
|
|
|
addRepoToClose(groupBDb); |
|
|
|
addRepoToClose(groupBDb); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
resolveRelativeUris(); |
|
|
|
resolveRelativeUris(); |
|
|
|
} |
|
|
|
} |
|
|
|