|
|
@ -65,10 +65,8 @@ func parseCmd(cmd string) (string, string) { |
|
|
|
var ( |
|
|
|
var ( |
|
|
|
COMMANDS = map[string]models.AccessMode{ |
|
|
|
COMMANDS = map[string]models.AccessMode{ |
|
|
|
"git-upload-pack": models.ACCESS_MODE_READ, |
|
|
|
"git-upload-pack": models.ACCESS_MODE_READ, |
|
|
|
"git upload-pack": models.ACCESS_MODE_READ, |
|
|
|
|
|
|
|
"git-upload-archive": models.ACCESS_MODE_READ, |
|
|
|
"git-upload-archive": models.ACCESS_MODE_READ, |
|
|
|
"git-receive-pack": models.ACCESS_MODE_WRITE, |
|
|
|
"git-receive-pack": models.ACCESS_MODE_WRITE, |
|
|
|
"git receive-pack": models.ACCESS_MODE_WRITE, |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|