Skip to content

Commit

Permalink
try something
Browse files Browse the repository at this point in the history
  • Loading branch information
mortenpi committed Nov 13, 2023
1 parent 926ea1b commit 5a18ed8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utilities/utilities.jl
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@ function repo_commit(repository_root::AbstractString)
isdir(repository_root) || throw(RepoCommitError(repository_root, "repository_root not a directory"))
cd(repository_root) do
try
toplevel = readchomp(`$(git()) rev-parse --show-toplevel`)
toplevel = readchomp(`$(git()) rev-parse --show-toplevel --path-format=absolute`)
@show toplevel
if !ispath(toplevel)
throw(RepoCommitError(repository_root, "`git rev-parse --show-toplevel` returned invalid path: $toplevel"))
end
Expand Down

0 comments on commit 5a18ed8

Please sign in to comment.