Skip to content

Commit 2ba836f

Browse files
committed
use git_path::is_absolute() (#450)
1 parent f58a043 commit 2ba836f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-credentials/src/program.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl Program {
4343
.map_or(input.as_slice(), |pos| &input[..pos])
4444
.as_bstr(),
4545
);
46-
if path.is_absolute() || input.first() == Some(&b'/') {
46+
if git_path::is_absolute(path) {
4747
Kind::CustomPath { path_and_args: input }
4848
} else {
4949
input.insert_str(0, "git credential-");

0 commit comments

Comments
 (0)