summarylogtreecommitdiffstats
path: root/dugite-use-system-git.patch
blob: c28ccd0968b27b472ec188c3308f3078bcbcffd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
--- a/build/lib/git-environment.js
+++ b/build/lib/git-environment.js
@@ -24,7 +24,7 @@
         return path.resolve(process.env.LOCAL_GIT_DIRECTORY);
     }
     else {
-        return resolveEmbeddedGitDir();
+        return '/usr';
     }
 }
 /**
@@ -57,7 +57,7 @@
         return path.join(gitDir, 'mingw32', 'libexec', 'git-core');
     }
     else {
-        return path.join(gitDir, 'libexec', 'git-core');
+        return path.join(gitDir, 'lib', 'git-core');
     }
 }
 /**
@@ -108,9 +108,9 @@
         if (!env.GIT_SSL_CAINFO && !env.LOCAL_GIT_DIRECTORY) {
             // use the SSL certificate bundle included in the distribution only
             // when using embedded Git and not providing your own bundle
-            const distDir = resolveEmbeddedGitDir();
-            const sslCABundle = `${distDir}/ssl/cacert.pem`;
-            env.GIT_SSL_CAINFO = sslCABundle;
+            // const distDir = resolveEmbeddedGitDir();
+            // const sslCABundle = `${distDir}/ssl/cacert.pem`;
+            // env.GIT_SSL_CAINFO = sslCABundle;
         }
     }
     return { env, gitLocation };