Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
typo
Signed-off-by: Ilya Pavlov <[email protected]>
  • Loading branch information
Ilya33 committed Oct 26, 2019
commit 97c392c06a6c025cab26432b370f812ed4889a22
4 changes: 2 additions & 2 deletions services/pull/merge.go
Original file line number Diff line number Diff line change
Expand Up @@ -419,13 +419,13 @@ func getDiffTree(repoPath, baseBranch, headBranch string) (string, error) {
})

// An optional prefix !
filepath = optionalNPrefixRE.ReplaceAllString(filepath, `/\$1`)
filepath = optionalNPrefixRE.ReplaceAllString(filepath, `\$1`)

// * ? [
filepath = strings.Replace(filepath, "*", `\*`, -1)
filepath = strings.Replace(filepath, "?", `\?`, -1)
filepath = strings.Replace(filepath, "[", `\[`, -1)

fmt.Printf("%s\n", filepath)
fmt.Fprintf(&out, "/%s\n", filepath)
}

Expand Down