Skip to content

Commit

Permalink
borg.sh: Drop unsupported and ineffective argument to realpath
Browse files Browse the repository at this point in the history
The `realpath' on macOS (and likely elsewhere) lacks this argument.

We wanted to use a relative path so that `git clone' would store that
relative path in "<module>/.git"; turns out it converts any relative
path into an absolute path.

In other words, we lose nothing by dropping this argument.

Closes #167.
  • Loading branch information
tarsius committed Nov 11, 2024
1 parent d1bee48 commit 7289756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion borg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ cmd_clone () {
shift
done

gitdir="$(realpath --relative-to=. "$(git rev-parse --git-dir)")"
gitdir="$(realpath "$(git rev-parse --git-dir)")"

if [ $# -ne 0 ]
then
Expand Down

0 comments on commit 7289756

Please sign in to comment.