diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2015-12-11 23:58:00 +0100 |
---|---|---|
committer | Máximo Cuadros <mcuadros@gmail.com> | 2015-12-11 23:58:00 +0100 |
commit | c22c181f70e0afb294513315e9975b9f3f4c1d39 (patch) | |
tree | 8377ae4645c58454d0f2a61631a4a81d2d7d5faf /repository.go | |
parent | 5c8fff7e9e614d9f463d964699539fe71509ba39 (diff) | |
parent | c347e978b52212b5aa968a14d81c8fff47ab24d7 (diff) | |
download | go-git-c22c181f70e0afb294513315e9975b9f3f4c1d39.tar.gz |
Merge pull request #7 from alcortesm/blame
Blame
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 } |