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

Hide repository credentials

Closes: #19
parent 4b181d78
No related branches found
No related tags found
1 merge request!58Hide repository credentials
Pipeline #12592 passed
......@@ -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