diff --git a/internal/logic/root.go b/internal/logic/root.go index bd107d5..bb3f7ac 100644 --- a/internal/logic/root.go +++ b/internal/logic/root.go @@ -50,7 +50,7 @@ func cdLogic(possibleRepoUrl, possibleCustomDir string) error { // Starting index of the remote repo name start := strings.LastIndex(possibleCustomDir, "/") + 1 - var createdDir string // Holds the name of the cloned directory + createdDir := possibleCustomDir // Holds the name of the cloned directory if usedDefaultGit { if isBare, _ := isBareRepo(possibleCustomDir[start:]); isBare {