File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -51,11 +51,11 @@ function git_dir()
5151 // Don't show command error if git is not initialized
5252 $ errorToDevNull = is_windows () ? '' : ' 2>/dev/null ' ;
5353
54- $ gitDir = trim (shell_exec ('git rev-parse --git-common-dir ' .$ errorToDevNull ));
54+ $ gitDir = trim (( string ) shell_exec ('git rev-parse --git-common-dir ' .$ errorToDevNull ));
5555 if ($ gitDir === '' || $ gitDir === '--git-common-dir ' ) {
5656 // the version of git does not support `--git-common-dir`
5757 // we fallback to `--git-dir` which and lose worktree support
58- $ gitDir = trim (shell_exec ('git rev-parse --git-dir ' .$ errorToDevNull ));
58+ $ gitDir = trim (( string ) shell_exec ('git rev-parse --git-dir ' .$ errorToDevNull ));
5959 }
6060
6161 return $ gitDir === '' ? false : realpath ($ gitDir );
You can’t perform that action at this time.
0 commit comments