[PATCH 1/2] Documentation/git-worktree: fix duplicated 'from'

2015-08-04 Thread Patrick Steinhardt
Signed-off-by: Patrick Steinhardt --- Documentation/git-worktree.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt index 3387e2f..566ca92 100644 --- a/Documentation/git-worktree.txt +++ b/Documentation/git-workt

[PATCH 2/2] Documentation/git-worktree: fix reference to 'locked' file

2015-08-04 Thread Patrick Steinhardt
The documentation of git-worktree refers to the 'locked' file as 'lock'. Fix this to say 'locked' instead. Signed-off-by: Patrick Steinhardt --- Documentation/git-worktree.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/git-worktree.txt b/Documentation/git-w

[PATCH v3 6/6] clone: add tests for cloning with empty path

2015-08-04 Thread Patrick Steinhardt
Test behavior of `git clone` when working with an empty path component. This may be the case when cloning a file system's root directory or from a remote server's root. Signed-off-by: Patrick Steinhardt --- t/t1509-root-worktree.sh | 43 +++ 1 file changed

[PATCH v3 4/6] clone: do not use port number as dir name

2015-08-04 Thread Patrick Steinhardt
If the URI contains a port number and the URI's path component is empty we fail to guess a sensible directory name. E.g. cloning a repository 'ssh://example.com:/' we guess a directory name '' where we would want the hostname only, e.g. 'example.com'. Fix this by stripping trailing port nu

[PATCH v3 5/6] clone: abort if no dir name could be guessed

2015-08-04 Thread Patrick Steinhardt
Due to various components of the URI being stripped off it may happen that we fail to guess a directory name. We currently error out with a message that it is impossible to create the working tree '' in such cases. Instead, error out early with a sensible error message hinting that a directory name

[PATCH v3 1/6] tests: fix broken && chains in t1509-root-worktree

2015-08-04 Thread Patrick Steinhardt
Signed-off-by: Patrick Steinhardt --- t/t1509-root-worktree.sh | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/t1509-root-worktree.sh b/t/t1509-root-worktree.sh index b6977d4..0c80129 100755 --- a/t/t1509-root-worktree.sh +++ b/t/t1509-root-worktree.sh @@ -125,7 +125

[PATCH v3 3/6] clone: do not include authentication data in guessed dir

2015-08-04 Thread Patrick Steinhardt
If the URI contains authentication data and the URI's path component is empty we fail to guess a sensible directory name. E.g. cloning a repository 'ssh://user:passw...@example.com/' we guess a directory name 'passw...@example.com' where we would want the hostname only, e.g. 'example.com'. Fix thi

[PATCH v3 2/6] tests: fix cleanup after tests in t1509-root-worktree

2015-08-04 Thread Patrick Steinhardt
During cleanup we do a simple 'rm /*' to remove leftover files from previous tests. As 'rm' errors out when there is anything it cannot delete and there are directories present at '/' it will throw an error, causing the '&&' chain to fail. Fix this by explicitly removing the files. Signed-off-by:

[PATCH v3 0/6] fix repo name when cloning a server's root

2015-08-04 Thread Patrick Steinhardt
This is the third version of this patch series. It aims to improve guessing directory names such that we do not include authentication data and port numbers in them. This version drops the patches exposing 'parse_connect_url()' and instead does the stripping of authentification data and port insid

[PATCH] git_open_noatime: return with errno=0 on success

2015-08-04 Thread Clemens Buchacher
In read_sha1_file_extended we die if read_object fails with a fatal error. We detect a fatal error if errno is non-zero and is not ENOENT. If the object could not be read because it does not exist, this is not considered a fatal error and we want to return NULL. Somewhere down the line, read_objec

Re: git svn clone fails

2015-08-04 Thread Jörg Schaible
Hmmm. Is this the proper channel to report issues or should I go somewhere else? Jörg Schaible wrote: > Hello guys, > > we have to turn some projects managed by Subversion into a GIT-based > solution. However the conversion unfortunately fails with an error: > > == %< =

допоможіть сайту нашої школи http://154school.kiev.ua/ - будь ласка, відкрийте його для перегляду однієї-двох сторінок,

2015-08-04 Thread admin
Доброго дня, будь ласка, просимо переглянути наш шкільний сайт, якщо це не важко для вас, http://154school.kiev.ua/ - будь ласка, відкрийте його для перегляду однієї-двох сторінок, і на будь-якій сторінці один раз натисніть на рекламний банер, який вам найбільш цікавий, це Ваша допомога, щоб ми

Re: [PATCH v4] clone: simplify string handling in guess_dir_name()

2015-08-04 Thread Sebastian Schuberth
On Tue, Aug 4, 2015 at 6:34 AM, Lukas Fleischer wrote: > I am currently on vacation and cannot bisect or debug this but I am > pretty confident that this patch changes the behaviour of directory name > guessing. With Git 2.4.6, cloning http://foo.bar/foo.git/ results in a > directory named foo an

Re: [git-p4] import with labels fails when commit is not transferred

2015-08-04 Thread Luke Diamand
On 04/07/15 04:27, Luke Diamand wrote: Sorry for not replying earlier, and thanks for taking the time to investigate this! It's a pretty subtle corner case: I think a test case would be useful. I'm going to try to put something together, unless you beat me to it! (I think t9811-git-p4-label-imp

<    1   2