diff options
Diffstat (limited to 'repository.go')
-rw-r--r-- | repository.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/repository.go b/repository.go index 32a6fcf..e63869a 100644 --- a/repository.go +++ b/repository.go @@ -20,6 +20,7 @@ const ( type Repository struct { Remotes map[string]*Remote Storage *core.RAWObjectStorage + URL string } // NewRepository creates a new repository setting remote as default remote @@ -39,6 +40,7 @@ func NewRepository(url string, auth common.AuthMethod) (*Repository, error) { r := NewPlainRepository() r.Remotes[DefaultRemoteName] = remote + r.URL = url return r, nil } |