diff options
-rw-r--r-- | repository/gogit.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/repository/gogit.go b/repository/gogit.go index a93e8576..b0a4672b 100644 --- a/repository/gogit.go +++ b/repository/gogit.go @@ -507,7 +507,7 @@ func (repo *GoGitRepo) GetOrCreateClock(name string) (lamport.Clock, error) { repo.clocksMutex.Lock() defer repo.clocksMutex.Unlock() - p := clockPath + name + "-clock" + p := stdpath.Join(repo.path, clockPath, name+"-clock") c, err = lamport.NewPersistedClock(p) if err != nil { @@ -526,7 +526,7 @@ func (repo *GoGitRepo) getClock(name string) (lamport.Clock, error) { return c, nil } - p := clockPath + name + "-clock" + p := stdpath.Join(repo.path, clockPath, name+"-clock") c, err := lamport.LoadPersistedClock(p) if err == nil { |