Skip to content

Commit

Permalink
fix: force remote name origin when using remotes (#830)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox authored Sep 30, 2024
1 parent 2eb8d43 commit 9be9ab0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/git/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func (r *Repository) updateRemote(path, ref string) error {
func (r *Repository) cloneRemote(dest, directoryName, url, ref string) error {
log.Debugf("Cloning remote config repository: %v/%v", dest, directoryName)

cmdClone := []string{"git", "-C", dest, "clone", "--quiet", "--depth", "1"}
cmdClone := []string{"git", "-C", dest, "clone", "--quiet", "--origin", "origin", "--depth", "1"}
if len(ref) > 0 {
cmdClone = append(cmdClone, "--branch", ref)
}
Expand Down
2 changes: 1 addition & 1 deletion internal/lefthook/install.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ func (l *Lefthook) createHooksIfNeeded(cfg *config.Config, checkHashSum, force b
return nil
}

log.Infof(log.Cyan("sync hooks"))
log.Infof("%s", log.Cyan("sync hooks"))

var success bool
defer func() {
Expand Down

0 comments on commit 9be9ab0

Please sign in to comment.