{"thread":{"id":"28984","subject":"[PATCH 1/3] t5501-*.sh: Fix url passed to clone in setup test","startedAt":"2011-11-19T19:38:54Z","lastAt":"2011-11-21T03:24:49Z","messageCount":2,"participants":["Ramsay Jones","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"179741","messageId":"4EC805CE.10203@ramsay1.demon.co.uk","threadId":"28984","inReplyTo":null,"subject":"[PATCH 1/3] t5501-*.sh: Fix url passed to clone in setup test","fromName":"Ramsay Jones","fromEmail":"ramsay@ramsay1.demon.co.uk","sentAt":"2011-11-19T19:38:54Z","receivedAt":"2011-11-19T19:38:54Z","isPatch":true,"sender":{"key":"ramsay@ramsayjones.plus.com","avatar":"https://avatars.githubusercontent.com/u/33702710?v=4"},"body":"\nIn particular, the url passed to git-clone has an extra '/' given\nafter the 'file://' schema prefix, thus:\n\n    git clone --reference=original \"file:///$(pwd)/original one\n\nOnce the prefix is removed, the remainder of the url looks something\nlike \"//home/ramsay/git/t/...\", which is then interpreted as an\nnetwork path. This then results in a \"Permission denied\" error, like\nso:\n\n    ramsay $ ls //home\n    ls: cannot access //home: No such host or network path\n    ramsay $ ls //home/ramsay\n    ls: cannot access //home/ramsay: Permission denied\n    ramsay $\n\nIn order to fix the problem, we simply remove the extraneous '/'\ncharacter from the url.\n\nSigned-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>\n---\n t/t5501-fetch-push-alternates.sh |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/t/t5501-fetch-push-alternates.sh b/t/t5501-fetch-push-alternates.sh\nindex b5ced84..1bc57ac 100755\n--- a/t/t5501-fetch-push-alternates.sh\n+++ b/t/t5501-fetch-push-alternates.sh\n@@ -28,7 +28,7 @@ test_expect_success setup '\n \t\tdone\n \t) &&\n \t(\n-\t\tgit clone --reference=original \"file:///$(pwd)/original\" one &&\n+\t\tgit clone --reference=original \"file://$(pwd)/original\" one &&\n \t\tcd one &&\n \t\techo Z >count &&\n \t\tgit add count &&\n-- \n1.7.7\n"},{"id":"179769","messageId":"7vaa7qi2da.fsf@alter.siamese.dyndns.org","threadId":"28984","inReplyTo":"4EC805CE.10203@ramsay1.demon.co.uk","subject":"Re: [PATCH 1/3] t5501-*.sh: Fix url passed to clone in setup test","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2011-11-21T03:24:49Z","receivedAt":"2011-11-21T03:24:49Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Ramsay Jones <ramsay@ramsay1.demon.co.uk> writes:\n\n> In particular, the url passed to git-clone has an extra '/' given\n> after the 'file://' schema prefix, thus:\n>\n>     git clone --reference=original \"file:///$(pwd)/original one\n>\n> Once the prefix is removed, the remainder of the url looks something\n> like \"//home/ramsay/git/t/...\", which is then interpreted as an\n> network path. This then results in a \"Permission denied\" error, like\n> so:\n>\n>     ramsay $ ls //home\n>     ls: cannot access //home: No such host or network path\n>     ramsay $ ls //home/ramsay\n>     ls: cannot access //home/ramsay: Permission denied\n>     ramsay $\n>\n> In order to fix the problem, we simply remove the extraneous '/'\n> character from the url.\n>\n> Signed-off-by: Ramsay Jones <ramsay@ramsay1.demon.co.uk>\n> ---\n\nThanks; obviously correct.\n\n\n>  t/t5501-fetch-push-alternates.sh |    2 +-\n>  1 files changed, 1 insertions(+), 1 deletions(-)\n>\n> diff --git a/t/t5501-fetch-push-alternates.sh b/t/t5501-fetch-push-alternates.sh\n> index b5ced84..1bc57ac 100755\n> --- a/t/t5501-fetch-push-alternates.sh\n> +++ b/t/t5501-fetch-push-alternates.sh\n> @@ -28,7 +28,7 @@ test_expect_success setup '\n>  \t\tdone\n>  \t) &&\n>  \t(\n> -\t\tgit clone --reference=original \"file:///$(pwd)/original\" one &&\n> +\t\tgit clone --reference=original \"file://$(pwd)/original\" one &&\n>  \t\tcd one &&\n>  \t\techo Z >count &&\n>  \t\tgit add count &&\n"}]}