All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 1c0f4a5f authored by Robert Ricci's avatar Robert Ricci

Fix for older versions of git

'git revparse --show-toplevel' is a nice way to get a path to the repo
no matter where you are in it, but unfortunately, older versions don't
have it. So, go back to `pwd`
parent 78669f67
......@@ -1289,7 +1289,9 @@ sub get_hostname() {
# Gets the path for the repo
#
sub get_pathname() {
my $pwd = `$GIT rev-parse --show-toplevel $STDERRNULL`;
# Unfortunately, older versions of git don't have '--show-toplevel'
#my $pwd = `$GIT rev-parse --show-toplevel $STDERRNULL`;
my $pwd = `pwd`;
chomp $pwd;
return $pwd;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment