mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
trivial fix
This commit is contained in:
parent
69aea14ede
commit
c4b4fb2fd1
|
|
@ -70,7 +70,8 @@ func (g *getter) getRemoteRepository(remote RemoteRepository) error {
|
|||
}
|
||||
}
|
||||
|
||||
if newPath {
|
||||
switch {
|
||||
case newPath:
|
||||
logger.Log("clone", fmt.Sprintf("%s -> %s", remoteURL, fpath))
|
||||
var (
|
||||
localRepoRoot = fpath
|
||||
|
|
@ -101,8 +102,7 @@ func (g *getter) getRemoteRepository(remote RemoteRepository) error {
|
|||
})
|
||||
}
|
||||
return nil
|
||||
}
|
||||
if g.update {
|
||||
case g.update:
|
||||
logger.Log("update", fpath)
|
||||
vcs, localRepoRoot := local.VCS()
|
||||
if vcs == nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue