hello guys,
I tested the script mentioned in update-hook-example.txt and noticed,
that the following line in allowed-users
refs/heads/tmp/ *
and the if-clause above
matchlen=$(expr "$1" : "$head_pattern")
if [ "$matchlen" == "${#1}" ]; then
does not recognize the header
refs/heads/tmp/blah
... so, all users trying to update or create branches named
tmp/<insert_fancy_name_here> are denied, because nothing matches.
also the example case in which linus should be allowed to push and
create branches bw/blah and bw/blupp doesn't work.
If I try following rule in allowed-users
refs/heads/tmp *
and someone tries to commit refs/heads/tmp, it works as intended.
This is at least in bash 3.1.2.5 ... (i tested that on my powerbook this
week end). Perhaps it worked in November 2005. I don't know which
version of bash was the latest then.
For all other examples in this document, it grants and denies pushing
and creating branches as intended.
I haven't tried the tag-case yet.... could be, that this also doesn't
work anymore.
Greetings
Nicolas
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html| Ingo Molnar | [patch 12/13] syslets: x86: optimized copy_uatom() |
| Greg Kroah-Hartman | [PATCH 017/196] aoechr: Convert from class_device to device |
| Yinghai Lu | Re: 2.6.26, PAT and AMD family 6 |
| Jan Engelhardt | intel iommu (Re: -mm merge plans for 2.6.23) |
git: | |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Natalie Protasevich | [BUG] New Kernel Bugs |
