diff options
Diffstat (limited to 'entity')
-rw-r--r-- | entity/dag/example_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/entity/dag/example_test.go b/entity/dag/example_test.go index 7290b4d4..106e359c 100644 --- a/entity/dag/example_test.go +++ b/entity/dag/example_test.go @@ -336,15 +336,15 @@ func Read(repo repository.ClockedRepo, id entity.Id) (*ProjectConfig, error) { } func Example_entity() { - const gitBugApplicationName = "git-bug" + const gitBugNamespace = "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, gitBugApplicationName) - repoIsaac, _ := repository.InitGoGitRepo(repoIsaacPath, gitBugApplicationName) + repoRene, _ := repository.InitGoGitRepo(repoRenePath, gitBugNamespace) + repoIsaac, _ := repository.InitGoGitRepo(repoIsaacPath, gitBugNamespace) _ = repoRene.AddRemote("origin", repoIsaacPath) _ = repoIsaac.AddRemote("origin", repoRenePath) |