Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Feb 2, 2025
1 parent 825ae05 commit 815ef39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/gitutils/gitmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ func (gm *GitManager) IsClean() (bool, error) {
return status.IsClean(), nil
}


func (gm *GitManager) Diff(reference string) (err error) {
// Get the current branch
currentBranch, err := gm.localGitRepository.Head()
Expand Down Expand Up @@ -203,6 +202,7 @@ func getRemoteUrl(remote *goGit.Remote) (remoteUrl string, err error) {

// Normalize the URL by removing protocol prefix and any trailing ".git"
func normalizeGitUrl(url string) string {
// jfrog-ignore - false positive, not used for communication
url = strings.TrimPrefix(url, "http://")
url = strings.TrimPrefix(url, "https://")
url = strings.TrimPrefix(url, "ssh://")
Expand Down

0 comments on commit 815ef39

Please sign in to comment.