aboutsummaryrefslogtreecommitdiffstats
path: root/repository.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2015-12-11 23:58:00 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2015-12-11 23:58:00 +0100
commitc22c181f70e0afb294513315e9975b9f3f4c1d39 (patch)
tree8377ae4645c58454d0f2a61631a4a81d2d7d5faf /repository.go
parent5c8fff7e9e614d9f463d964699539fe71509ba39 (diff)
parentc347e978b52212b5aa968a14d81c8fff47ab24d7 (diff)
downloadgo-git-c22c181f70e0afb294513315e9975b9f3f4c1d39.tar.gz
Merge pull request #7 from alcortesm/blame
Blame
Diffstat (limited to 'repository.go')
-rw-r--r--repository.go2
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
}