Skip to content

Commit d5b8dc6

Browse files
authored
Merge pull request #85344 from ahoppen/basename
[update-checkout] Use `basename` to get repo name for Git failures
2 parents eedefc5 + 2dac60c commit d5b8dc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/update_checkout/update_checkout/git_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def run(
7878
f"status {str(e.returncode)}, aborting"
7979
)
8080
raise GitException(
81-
e.returncode, command, os.path.dirname(repo_path), output
81+
e.returncode, command, os.path.basename(repo_path), output
8282
)
8383
except OSError as e:
8484
if fatal:

0 commit comments

Comments
 (0)