diff options
Diffstat (limited to 'gitaccess.pre-receive')
-rwxr-xr-x | gitaccess.pre-receive | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gitaccess.pre-receive b/gitaccess.pre-receive index 2b6f0e5..e91c59e 100755 --- a/gitaccess.pre-receive +++ b/gitaccess.pre-receive @@ -62,7 +62,7 @@ fi log "Attempted login for user ${GIT_USER} on ${commit_dest_str}" # See if user is permitted access to this repo -grep -v '^#' users | grep ${GIT_USER} 2>&1 1>/dev/null +grep -v '^#' users | grep "^${GIT_USER}\$" 2>&1 1>/dev/null if [[ $? != 0 ]]; then log "User is not permitted access to repo $(pwd)" |