mirror of
https://github.com/taigrr/mg.git
synced 2026-04-02 03:28:42 -07:00
update to use /Users/tai
This commit is contained in:
@@ -32,9 +32,9 @@ func (m MRConfig) ToMGConfig() MGConfig {
|
||||
mgconf := MGConfig(m)
|
||||
for i, repo := range mgconf.Repos {
|
||||
checkout := repo.Remote
|
||||
if strings.HasPrefix(checkout, "git clone '") {
|
||||
if after, ok := strings.CutPrefix(checkout, "git clone '"); ok {
|
||||
// git clone 'git@bitbucket.org:taigrr/mg.git' 'mg'
|
||||
remote := strings.TrimPrefix(checkout, "git clone '")
|
||||
remote := after
|
||||
sp := strings.Split(remote, "' '")
|
||||
remote = sp[0]
|
||||
mgconf.Repos[i].Remote = remote
|
||||
|
||||
Reference in New Issue
Block a user