mirror of
https://github.com/x-motemen/ghq.git
synced 2026-09-10 07:26:27 -04:00
workaround
This commit is contained in:
parent
569a8fed88
commit
9d4863bb5b
|
|
@ -119,7 +119,9 @@ func (g *getter) getRemoteRepository(remote RemoteRepository) error {
|
|||
if vcs == nil {
|
||||
return fmt.Errorf("Could not find version control system: %s", remoteURL)
|
||||
}
|
||||
repoPath = strings.TrimSuffix(filepath.Join(root, repoURL.Host, repoURL.Path), ".git")
|
||||
if strings.HasPrefix(remoteURL.String(), strings.TrimSuffix(repoURL.String(), ".git")) {
|
||||
repoPath = strings.TrimSuffix(filepath.Join(root, repoURL.Host, repoURL.Path), ".git")
|
||||
}
|
||||
}
|
||||
if getRepoLock(repoPath) {
|
||||
return vcs.Clone(repoURL, repoPath, g.shallow, g.silent)
|
||||
|
|
|
|||
Loading…
Reference in a new issue