summaryrefslogtreecommitdiff
path: root/git-repo
diff options
context:
space:
mode:
authorYves Fischer <yvesf-git@xapek.org>2018-11-27 01:00:40 +0100
committerYves Fischer <yvesf-git@xapek.org>2018-11-27 01:04:17 +0100
commit0b96889da786513d0522b8444cb0f3514b7edb3b (patch)
treef1c0ff250ff3272868becf4604682a6084d55555 /git-repo
parent79beafcbe7dceee1d540d3522ebddd149f7e58be (diff)
downloadgit-repo-0b96889da786513d0522b8444cb0f3514b7edb3b.tar.gz
git-repo-0b96889da786513d0522b8444cb0f3514b7edb3b.zip
warn if PUBLIC file is missing
Diffstat (limited to 'git-repo')
-rwxr-xr-xgit-repo3
1 files changed, 3 insertions, 0 deletions
diff --git a/git-repo b/git-repo
index 5917e5c..9feacd7 100755
--- a/git-repo
+++ b/git-repo
@@ -49,6 +49,9 @@ do_list() {
fi
if [ $(( 0$repo_path_mode & 07 )) -gt 0 ]; then # public
permissions="$permissions PUBLIC"
+ if ! [ -f "$repo_path/PUBLIC" ]; then
+ permissions="${permissions}-but-cgit-marker-file-missing"
+ fi
color="$C_bg_magenta"
fi
printf "%s%-60s (%s) (%s)\n" "$color" "$repo_path$C_bg_default" "$permissions" "$shortdesc"