githelper.git/
githelper.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2016-11-30
2016-11-30 17:08:49 by Henrik Grubbström (Grubba) <grubba@grubba.org>
bd0f1fd8e7e5b445c2d572c03ecd6c0f42525976 (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
master
pre-receive: Don't fail group access check silently.
609:
string shortref = ref_name; sscanf(shortref, "refs/%*[^/]/%s", shortref); foreach(groups; string group; AccessLevel ac) {
-
if (has_prefix(shortref, group + "/"))
+
if (has_prefix(shortref, group + "/"))
{
+
if (!ac) {
+
write("Access to %s denied for user %s\n", ref_name, user);
+
}
return ac; }
-
+
}
if (search(ref_name, "/x-") >= 0) { write("The ref %s can only be modified by its owner\n", ref_name); return ACCESS_NONE;