diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-18 16:13:10 -0800 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-02-18 16:13:10 -0800 |
commit | b37c4d67e9039e21c1c5a802b497dee9a13be954 (patch) | |
tree | b7b34d36ae967287419501d50f26c225e6d7addd /lib | |
parent | 8ab4228b08c6f3bada042e7fd74ae1e2583e8191 (diff) | |
download | gitlab-shell-b37c4d67e9039e21c1c5a802b497dee9a13be954.tar.gz |
Safer line sub for git-annex commandv2.5.2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab_shell.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb index d053ffb..864b61c 100644 --- a/lib/gitlab_shell.rb +++ b/lib/gitlab_shell.rb @@ -51,7 +51,7 @@ class GitlabShell @git_cmd = args.first 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 init_git_annex(@repo_name) |