From b42fae382af0a43b0d51fb312abd4ff55df43877 Mon Sep 17 00:00:00 2001 From: Steve Moyer Date: Wed, 25 May 2022 07:55:28 -0400 Subject: feat: make local storage configurable --- entity/dag/example_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'entity/dag') 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) -- cgit