From 841b843dbe714cd7775ed1fcdbd6374793ff00ee Mon Sep 17 00:00:00 2001 From: risca Date: Tue, 17 Mar 2015 09:37:05 +0000 Subject: Added a comment: Problem solved! --- ...nt_23_70dcb7e7ffdd14351adaf4c40ee7fdd0._comment | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 doc/tips/using_gitolite_with_git-annex/comment_23_70dcb7e7ffdd14351adaf4c40ee7fdd0._comment diff --git a/doc/tips/using_gitolite_with_git-annex/comment_23_70dcb7e7ffdd14351adaf4c40ee7fdd0._comment b/doc/tips/using_gitolite_with_git-annex/comment_23_70dcb7e7ffdd14351adaf4c40ee7fdd0._comment new file mode 100644 index 000000000..095159afa --- /dev/null +++ b/doc/tips/using_gitolite_with_git-annex/comment_23_70dcb7e7ffdd14351adaf4c40ee7fdd0._comment @@ -0,0 +1,29 @@ +[[!comment format=hs + username="risca" + subject="Problem solved!" + date="2015-03-17T09:37:04Z" + content=""" +I was experiencing the same issue (FATAL: bad git-annex-shell command: git-annex-shell 'configlist' '/myrepo' at /usr/share/gitolite3/commands/git-annex-shell line 25, line 1.) + +I solved with the following patch: + +--- /usr/share/gitolite3/commands/git-annex-shell 2015-03-17 10:26:46.114680811 +0100 ++++ orig.git-annex-shell 2015-03-17 10:25:16.074680925 +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; + + +References: http://git-annex.branchable.com/tips/using_gitolite_with_git-annex/#comment-16ee81f0d9e973ecb2fbb9d4a1fff261 +It was shown 3 years ago! I don't know why the bug it's still on. I'm using debian with: + - git-annex: + Installed: 5.20141024~bpo70+1 + - gitolite3: + Installed: 3.6-1~bpo70+1 +"""]] -- cgit v1.2.3 From 6971b6ad3509f616324619fb2dc512dffc0d149c Mon Sep 17 00:00:00 2001 From: edward Date: Tue, 17 Mar 2015 12:39:44 +0000 Subject: rename bugs/Assistant:_synchronisation_between_to_regular_repositories_hangs_.mdwn to bugs/Assistant:_synchronisation_between_two_regular_repositories_hangs_.mdwn --- ...ion_between_to_regular_repositories_hangs_.mdwn | 28 ---------------------- ...ent_1_36d1207818c8db747dbf94d9a48e3e98._comment | 9 ------- ...on_between_two_regular_repositories_hangs_.mdwn | 28 ++++++++++++++++++++++ ...ent_1_36d1207818c8db747dbf94d9a48e3e98._comment | 9 +++++++ 4 files changed, 37 insertions(+), 37 deletions(-) delete mode 100644 doc/bugs/Assistant:_synchronisation_between_to_regular_repositories_hangs_.mdwn delete mode 100644 doc/bugs/Assistant:_synchronisation_between_to_regular_repositories_hangs_/comment_1_36d1207818c8db747dbf94d9a48e3e98._comment create mode 100644 doc/bugs/Assistant:_synchronisation_between_two_regular_repositories_hangs_.mdwn create mode 100644 doc/bugs/Assistant:_synchronisation_between_two_regular_repositories_hangs_/comment_1_36d1207818c8db747dbf94d9a48e3e98._comment diff --git a/doc/bugs/Assistant:_synchronisation_between_to_regular_repositories_hangs_.mdwn b/doc/bugs/Assistant:_synchronisation_between_to_regular_repositories_hangs_.mdwn deleted file mode 100644 index 8e6c4f468..000000000 --- a/doc/bugs/Assistant:_synchronisation_between_to_regular_repositories_hangs_.mdwn +++ /dev/null @@ -1,28 +0,0 @@ -### Please describe the problem. - -Two regular repositories created with the assistant, one on the computer and one on an USB stick cannot synchronise. Log reports problem with the index file: - - /media/usb/annex/.git/index: copyFile: does not exist (No such file or directory) - -### What steps will reproduce the problem? - -Create a repository and then another on an usb stick (with `Add another repository`) and add a file to the first one, it doesn't synchronise. - -### What version of git-annex are you using? On what operating system? - -git-annex 5.20141125 from Debian Jessie - -### Please provide any additional information below. - -I was able to solve the problem by copying the .git/index file from the first repository to the second one. - -Also note that the second repository is on a FAT32 usb stick - - -[[!format sh """ -# If you can, paste a complete transcript of the problem occurring here. -# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log - - -# End of transcript or log. -"""]] diff --git a/doc/bugs/Assistant:_synchronisation_between_to_regular_repositories_hangs_/comment_1_36d1207818c8db747dbf94d9a48e3e98._comment b/doc/bugs/Assistant:_synchronisation_between_to_regular_repositories_hangs_/comment_1_36d1207818c8db747dbf94d9a48e3e98._comment deleted file mode 100644 index 3750d1a28..000000000 --- a/doc/bugs/Assistant:_synchronisation_between_to_regular_repositories_hangs_/comment_1_36d1207818c8db747dbf94d9a48e3e98._comment +++ /dev/null @@ -1,9 +0,0 @@ -[[!comment format=mdwn - username="joey" - subject="""comment 1""" - date="2015-03-16T17:34:22Z" - content=""" -Well, non-bare git repositories are supposed to have a .git/index file. - -Perhaps some damage to your USB stick caused it to lose this file? -"""]] diff --git a/doc/bugs/Assistant:_synchronisation_between_two_regular_repositories_hangs_.mdwn b/doc/bugs/Assistant:_synchronisation_between_two_regular_repositories_hangs_.mdwn new file mode 100644 index 000000000..8e6c4f468 --- /dev/null +++ b/doc/bugs/Assistant:_synchronisation_between_two_regular_repositories_hangs_.mdwn @@ -0,0 +1,28 @@ +### Please describe the problem. + +Two regular repositories created with the assistant, one on the computer and one on an USB stick cannot synchronise. Log reports problem with the index file: + + /media/usb/annex/.git/index: copyFile: does not exist (No such file or directory) + +### What steps will reproduce the problem? + +Create a repository and then another on an usb stick (with `Add another repository`) and add a file to the first one, it doesn't synchronise. + +### What version of git-annex are you using? On what operating system? + +git-annex 5.20141125 from Debian Jessie + +### Please provide any additional information below. + +I was able to solve the problem by copying the .git/index file from the first repository to the second one. + +Also note that the second repository is on a FAT32 usb stick + + +[[!format sh """ +# If you can, paste a complete transcript of the problem occurring here. +# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log + + +# End of transcript or log. +"""]] diff --git a/doc/bugs/Assistant:_synchronisation_between_two_regular_repositories_hangs_/comment_1_36d1207818c8db747dbf94d9a48e3e98._comment b/doc/bugs/Assistant:_synchronisation_between_two_regular_repositories_hangs_/comment_1_36d1207818c8db747dbf94d9a48e3e98._comment new file mode 100644 index 000000000..3750d1a28 --- /dev/null +++ b/doc/bugs/Assistant:_synchronisation_between_two_regular_repositories_hangs_/comment_1_36d1207818c8db747dbf94d9a48e3e98._comment @@ -0,0 +1,9 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2015-03-16T17:34:22Z" + content=""" +Well, non-bare git repositories are supposed to have a .git/index file. + +Perhaps some damage to your USB stick caused it to lose this file? +"""]] -- cgit v1.2.3 From 4030f50910511035175c9df8ecba7d6989d4b621 Mon Sep 17 00:00:00 2001 From: "https://www.google.com/accounts/o8/id?id=AItOawnG-DZQa3d3Jn7K2q36TlbmZ8v2YuV-23M" Date: Tue, 17 Mar 2015 13:31:35 +0000 Subject: Added a comment: Command line? --- .../comment_1_b9576aaa31258e9bdf18a4eac8d61bfb._comment | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/required_content/comment_1_b9576aaa31258e9bdf18a4eac8d61bfb._comment diff --git a/doc/required_content/comment_1_b9576aaa31258e9bdf18a4eac8d61bfb._comment b/doc/required_content/comment_1_b9576aaa31258e9bdf18a4eac8d61bfb._comment new file mode 100644 index 000000000..5e859d8f2 --- /dev/null +++ b/doc/required_content/comment_1_b9576aaa31258e9bdf18a4eac8d61bfb._comment @@ -0,0 +1,10 @@ +[[!comment format=mdwn + username="https://www.google.com/accounts/o8/id?id=AItOawnG-DZQa3d3Jn7K2q36TlbmZ8v2YuV-23M" + nickname="Fer" + subject="Command line?" + date="2015-03-17T13:31:34Z" + content=""" +Th expression format in the file is the same as preferred, but the latter can be set through command line (git-annex wanted REPO EXP), but I can't find any way to set required through command line. Is there any way, in the works, or not planned? + +Thanks! +"""]] -- cgit v1.2.3