瀏覽代碼

fix(git): disable color.ui in git storage (#6014)

Eric Knibbe 2 年之前
父節點
當前提交
41454cfd30
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      server/modules/storage/git/storage.js

+ 2 - 1
server/modules/storage/git/storage.js

@@ -45,9 +45,10 @@ module.exports = {
       await this.git.init()
     }
 
-    // Disable quotePath
+    // Disable quotePath, color output
     // Link https://git-scm.com/docs/git-config#Documentation/git-config.txt-corequotePath
     await this.git.raw(['config', '--local', 'core.quotepath', false])
+    await this.git.raw(['config', '--local', 'color.ui', false])
 
     // Set default author
     await this.git.raw(['config', '--local', 'user.email', this.config.defaultEmail])