aboutsummaryrefslogtreecommitdiffstats
path: root/entity/dag
diff options
context:
space:
mode:
authorSteve Moyer <smoyer1@selesy.com>2022-05-25 07:55:28 -0400
committerSteve Moyer <smoyer1@selesy.com>2022-05-25 07:55:28 -0400
commitb42fae382af0a43b0d51fb312abd4ff55df43877 (patch)
treec1f46b2fadd29d9a2890ecc1b9991e367aac86f2 /entity/dag
parent650c11dcb68bfe00e2d399c5e1d337cae9c1bfeb (diff)
downloadgit-bug-b42fae382af0a43b0d51fb312abd4ff55df43877.tar.gz
feat: make local storage configurable
Diffstat (limited to 'entity/dag')
-rw-r--r--entity/dag/example_test.go5
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)