diff options
author | Santiago M. Mola <santi@mola.io> | 2017-07-24 10:51:01 +0200 |
---|---|---|
committer | Santiago M. Mola <santi@mola.io> | 2017-08-01 13:01:54 +0200 |
commit | 9488c59834f6a2591910b7b360721cec2c16c548 (patch) | |
tree | fea051f6cf08a62aad12e32b2240aa837be22628 /submodule.go | |
parent | 7b08a3005480a50f0f4290aff8f3702085d5e30d (diff) | |
download | go-git-9488c59834f6a2591910b7b360721cec2c16c548.tar.gz |
config: multiple values in RemoteConfig (URLs and Fetch)
* Change `URL string` to `URL []string` in `RemoteConfig`, since
git allows multiple URLs per remote. See:
http://marc.info/?l=git&m=116231242118202&w=2
* Fix marshalling of multiple fetch refspecs.
Diffstat (limited to 'submodule.go')
-rw-r--r-- | submodule.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/submodule.go b/submodule.go index fbaddfd..cf90c63 100644 --- a/submodule.go +++ b/submodule.go @@ -130,7 +130,7 @@ func (s *Submodule) Repository() (*Repository, error) { _, err = r.CreateRemote(&config.RemoteConfig{ Name: DefaultRemoteName, - URL: s.c.URL, + URLs: []string{s.c.URL}, }) return r, err |