We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65161bc commit 79fe171Copy full SHA for 79fe171
1 file changed
utils/git.go
@@ -22,7 +22,7 @@ func GetFullCommitSha(repoPath, shortID string) (string, error) {
22
23
// LastCommitForPath returns the last commit which modified path for given revision.
24
func LastCommitForPath(repoPath, revision string, path string) (string, error) {
25
- cmd := exec.Command("bash", "-c", "git log --pretty=%H --max-count=1 "+revision+" -- "+path)
+ cmd := exec.Command("bash", "-c", "git log --pretty=%H --max-count=1 "+revision+" -- \""+path+"\"")
26
cmd.Dir = repoPath
27
out, err := cmd.Output()
28
if err != nil {
0 commit comments