diff options
Diffstat (limited to 'entity/dag/example_test.go')
-rw-r--r-- | entity/dag/example_test.go | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/entity/dag/example_test.go b/entity/dag/example_test.go index d034e59d..7290b4d4 100644 --- a/entity/dag/example_test.go +++ b/entity/dag/example_test.go @@ -336,14 +336,15 @@ func Read(repo repository.ClockedRepo, id entity.Id) (*ProjectConfig, error) { } func Example_entity() { + const gitBugApplicationName = "git-bug" // Note: this example ignore errors for readability // Note: variable names get a little confusing as we are simulating both side in the same function // Let's start by defining two git repository and connecting them as remote repoRenePath, _ := os.MkdirTemp("", "") repoIsaacPath, _ := os.MkdirTemp("", "") - repoRene, _ := repository.InitGoGitRepo(repoRenePath) - repoIsaac, _ := repository.InitGoGitRepo(repoIsaacPath) + repoRene, _ := repository.InitGoGitRepo(repoRenePath, gitBugApplicationName) + repoIsaac, _ := repository.InitGoGitRepo(repoIsaacPath, gitBugApplicationName) _ = repoRene.AddRemote("origin", repoIsaacPath) _ = repoIsaac.AddRemote("origin", repoRenePath) |