Package: gitolite3
Version: 3.6-1~bpo70+1
Severity: normal
Tags: patch

Dear Maintainer,
when using gitolite3 with git annex (as explained here [1]), the git annex commands don't work. In fact when trying to push or sync a git annex repository it says that the git-annex-shell is not installed and gives back the following error message: FATAL: bad git-annex-shell command: git-annex-shell 'configlist' '/nicolas.git' at /home/git/bin/commands/git-annex-shell line 25, line 1.

The following patch corrects the bug:
-----------------------------------------
--- buggy/usr/share/gitolite3/commands/git-annex-shell 2015-03-17 10:26:46.114680811 +0100 +++ working/usr/share/gitolite3/commands/git-annex-shell 2015-03-17 10:26:46.114680811 +0100
@@ -23,7 +23,7 @@ my $cmd = $ENV{SSH_ORIGINAL_COMMAND};
 # the second parameter.
 # Further parameters are not validated here (see below).
 die "bad git-annex-shell command: $cmd"
- unless $cmd =~ m#^(git-annex-shell '\w+' ')/\~/([0-9a-zA-Z][0-9a-zA-Z._\@/+-]*)('( .*|))$#; + unless $cmd =~ m#^(git-annex-shell '\w+' ')/(?:\~\/)?([0-9a-zA-Z][0-9a-zA-Z._\@/+-]*)('( .*|))$#;
 my $start = $1;
 my $repo  = $2;
 my $end   = $3;
-----------------------------------------

The problem was already found almost three years ago as written on branchables [2].

[1] http://git-annex.branchable.com/tips/using_gitolite_with_git-annex/
[2] http://git-annex.branchable.com/tips/using_gitolite_with_git-annex/#comment-16ee81f0d9e973ecb2fbb9d4a1fff261
-- System Information:
Debian Release: 7.8
  APT prefers stable-updates
  APT policy: (915, 'stable-updates'), (910, 'stable'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to