Commit b37c4d67 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Safer line sub for git-annex command

parent 8ab4228b
v2.5.2
- Safer line sub for git-annex command
v2.5.1 v2.5.1
- Expect broadcast message to return empty JSON if no message now - Expect broadcast message to return empty JSON if no message now
......
...@@ -51,7 +51,7 @@ class GitlabShell ...@@ -51,7 +51,7 @@ class GitlabShell
@git_cmd = args.first @git_cmd = args.first
if @git_cmd == 'git-annex-shell' && @config.git_annex_enabled? if @git_cmd == 'git-annex-shell' && @config.git_annex_enabled?
@repo_name = escape_path(args[2].gsub("\/~\/", '')) @repo_name = escape_path(args[2].sub(/\A\/~\//, ''))
# Make sure repository has git-annex enabled # Make sure repository has git-annex enabled
init_git_annex(@repo_name) init_git_annex(@repo_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment