Skip to content

Commit 5c7d5d1

Browse files
authored
Merge pull request #26 from gitopia/hariom/fix-content-api
fix content api
2 parents 6ac522e + 792e710 commit 5c7d5d1

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## [v0.6.1] - 2022-07-28
4+
5+
### Fixes
6+
7+
- Wrap path in double quotes
8+
39
## [v0.6.0] - 2022-04-04
410

511
### Features

utils/git.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ func GetFullCommitSha(repoPath, shortID string) (string, error) {
2222

2323
// LastCommitForPath returns the last commit which modified path for given revision.
2424
func LastCommitForPath(repoPath, revision string, path string) (string, error) {
25-
cmd := exec.Command("bash", "-c", "git log --pretty=%H --max-count=1 "+revision+" -- "+path)
25+
cmd := exec.Command("bash", "-c", "git log --pretty=%H --max-count=1 "+revision+" -- \""+path+"\"")
2626
cmd.Dir = repoPath
2727
out, err := cmd.Output()
2828
if err != nil {

0 commit comments

Comments
 (0)