Skip to content
This repository was archived by the owner on Jan 31, 2023. It is now read-only.

Commit 27c3431

Browse files
committed
Add fallback for rmtools
1 parent e5ef707 commit 27c3431

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/php/libsdk/SDK/Config.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,9 @@ public static function guessCurrentBranchName() : ?string
218218
version, but no dedicated series. For master, it rather
219219
makes sense to use master as branch name. */
220220
$git = trim(shell_exec("where git.exe"));
221+
if (!$git && is_executable('c:\apps\git\bin\git.exe')) {
222+
$git = 'c:\apps\git\bin\git.exe';
223+
}
221224
if ($git) {
222225
$cmd = "\"$git\" branch";
223226

0 commit comments

Comments
 (0)