azdo-cli 0.5.0-025-multi-org-support.449 → 0.5.0-025-multi-org-support.451
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -901,7 +901,7 @@ function readGitConfigContent() {
|
|
|
901
901
|
}
|
|
902
902
|
if (stat.isFile()) {
|
|
903
903
|
const ref = fs.readFileSync(gitPath, "utf-8");
|
|
904
|
-
const m = /^gitdir
|
|
904
|
+
const m = /^gitdir:[ \t]*([^\r\n]+)/m.exec(ref);
|
|
905
905
|
if (m) {
|
|
906
906
|
return fs.readFileSync(path.join(path.resolve(dir, m[1].trim()), "config"), "utf-8");
|
|
907
907
|
}
|
|
@@ -931,7 +931,7 @@ function gitConfigToRemoteLines(configContent) {
|
|
|
931
931
|
continue;
|
|
932
932
|
}
|
|
933
933
|
if (currentRemote && !emittedUrl) {
|
|
934
|
-
const urlMatch =
|
|
934
|
+
const urlMatch = /^[ \t]+url[ \t]*=[ \t]*([^\r\n]+)/.exec(line);
|
|
935
935
|
if (urlMatch) {
|
|
936
936
|
lines.push(`${currentRemote} ${urlMatch[1].trim()} (fetch)`);
|
|
937
937
|
emittedUrl = true;
|