Skip to content
Snippets Groups Projects
Commit 30a4971b authored by Jö Fahlke's avatar Jö Fahlke
Browse files

[!58] Hide repository credentials

Merge branch 'hide-repo-credentials' into 'master'

Closes: [#19]

See merge request [joe/pacxx-docker!58]

  [#19]: gitlab.dune-project.org/joe/pacxx-docker/issues/19
  [joe/pacxx-docker!58]: gitlab.dune-project.org/joe/pacxx-docker/merge_requests/58


Closes #19
parents 4b181d78 afe0c708
No related branches found
No related tags found
1 merge request!58Hide repository credentials
Pipeline #12597 failed
......@@ -6,6 +6,8 @@ dir=${1:?Need a directory to report status for}
name=${2:?Need a project name to report}
remote=$(git -C "$dir" remote get-url origin)
# hide any credentials from the git url
remote=$(printf '%s\n' "$remote" | sed 's,://[^/]*@,://,')
branch=$(git -C "$dir" symbolic-ref -q --short HEAD)
commit=$(git -C "$dir" rev-parse HEAD)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment