Browse Source

fix #185: avoid escaping paths in commit messages

Eric Knibbe 7 years ago
parent
commit
e0c6670b07
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/libs/git.js

+ 1 - 1
server/libs/git.js

@@ -210,7 +210,7 @@ module.exports = {
       let out = cProc.stdout.toString()
       let out = cProc.stdout.toString()
       return _.includes(out, gitFilePath)
       return _.includes(out, gitFilePath)
     }).then((isTracked) => {
     }).then((isTracked) => {
-      commitMsg = (isTracked) ? lang.t('git:updated', { path: gitFilePath }) : lang.t('git:added', { path: gitFilePath })
+      commitMsg = (isTracked) ? lang.t('git:updated', { path: gitFilePath, interpolation: { escapeValue: false } }) : lang.t('git:added', { path: gitFilePath, interpolation: { escapeValue: false } })
       return self._git.add(gitFilePath)
       return self._git.add(gitFilePath)
     }).then(() => {
     }).then(() => {
       let commitUsr = securityHelper.sanitizeCommitUser(author)
       let commitUsr = securityHelper.sanitizeCommitUser(author)