diff options
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | lib/gitlab_shell.rb | 2 |
3 files changed, 5 insertions, 2 deletions
@@ -1,3 +1,6 @@ +v2.5.2 + - Safer line sub for git-annex command + v2.5.1 - Expect broadcast message to return empty JSON if no message now @@ -1 +1 @@ -2.5.1 +2.5.2 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) |