- 16 Sep, 2014 1 commit
-
-
When using a bare repo with an index, libgit2 attempts to read files from the index. It caches those files based on the path to the file, specifically the path to the directory that contains the file. If there is no working directory, we use `git_path_dirname_r` to get the path to the containing directory. However, for the `.gitattributes` file in the root of the repository, this ends up normalizing the containing path to `"."` instead of the empty string and the lookup the `.gitattributes` data fails. This adds a test of attribute lookups on bare repos and also fixes the problem by simply rewriting `"."` to be `""`.
Russell Belfer committed
-
- 15 Sep, 2014 3 commits
-
-
Add Rust to the language bindings list
Vicent Marti committed -
Alex Crichton committed
-
When auto follow tags, FETCH_HEAD should list only newly followed tags
Vicent Marti committed
-
- 10 Sep, 2014 2 commits
-
-
signature: don't allow empty emails
Vicent Marti committed -
A signature is made up of a non-empty name and a non-empty email so let's validate that. This also brings us more in line with git, which also rejects ident with an empty email.
Carlos Martín Nieto committed
-
- 09 Sep, 2014 1 commit
-
-
Restrict which refs can be the default branch
Vicent Marti committed
-
- 05 Sep, 2014 3 commits
-
-
Linquize committed
-
Vicent Marti committed
-
ssh: store error message immediately after a failed agent call
Vicent Marti committed
-
- 04 Sep, 2014 1 commit
-
-
When the call to the agent fails, we must retrieve the error message just after the function call, as other calls may overwrite it. As the agent authentication is the only one which has a teardown and there does not seem to be a way to get the error message from a stored error number, this tries to introduce some small changes to store the error from the agent. Clearing the error at the beginning of the loop lets us know whether the agent has already set the libgit2 error message and we should skip it, or if we should set it.
Carlos Martín Nieto committed
-
- 03 Sep, 2014 5 commits
-
-
Clean up transport lookup
Vicent Marti committed -
Teach repository to use relative paths for git symbolic links
Vicent Marti committed -
Several CppCat warnings fixed
Vicent Marti committed -
Teach git_repository_init_ext to use relative paths for the gitlink to the work directory. This is used when creating a sub repository where the sub repository resides in the parent repository's .git directory.
Jameson Miller committed -
Edward Thomson committed
-
- 02 Sep, 2014 8 commits
-
-
.editorconfig added to repository
Vicent Marti committed -
Skip SSH clone tests if libgit2 not built with GIT_SSH defined
Vicent Marti committed -
Arkady Shapkin committed
-
Arkadiy Shapkin committed
-
When the fetch refspec does not include the remote's default branch, it indicates an error in user expectations or programmer error. Error out in that case. This lets us get rid of the dummy refspec which can never work as its zeroed out. In the cases where we did not find a default branch, we set HEAD detached immediately, which lets us refactor the "normal" path, removing `found_branch`.
Carlos Martín Nieto committed -
If the remote does not advertise HEAD, then it is unborn and we cannot checkout that branch. Handle it the same way as an empty repo.
Carlos Martín Nieto committed -
When cloning, we may be asking for a particular branch or subset of branches. Make sure we test for that.
Carlos Martín Nieto committed -
Add tests for the case when there are no branches on the remote and when HEAD is detached but has the id of a non-branch. In both of these cases, we should return ENOTFOUND.
Carlos Martín Nieto committed
-
- 01 Sep, 2014 3 commits
-
-
Fix warning
Vicent Marti committed -
Linquize committed
-
Linquize committed
-
- 31 Aug, 2014 6 commits
-
-
Instead of using ifdefs to run the tests, use them to set when we expect to support a particular scheme and always have the tests in the code.
Carlos Martín Nieto committed -
It does the same as git_remote_supported_url() but has a name which implies we'd check the URL for correctness while we're simply looking at the scheme and looking it up in our lists. While here, fix up the tests so we check all the combination of what's supported.
Carlos Martín Nieto committed -
The previous commit makes it harder to figure out if the library was built with support for a particular transport. Roll back some of the changes and remove ssh:// and https:// from the list if we're being built without support for them.
Carlos Martín Nieto committed -
Even when built without a SSH support, we know about this transport. It is implemented, but the current code makes us return an error message saying it's not. This is a leftover from the initial implementation of the transports when there were in fact transports we knew about but were not implemented. Instead, let the SSH transport itself say it cannot run, the same as we do for HTTPS.
Carlos Martín Nieto committed -
MSVC does not support zero size array
Vicent Marti committed -
Linquize committed
-
- 29 Aug, 2014 6 commits
-
-
merge: expose multiple merge bases
Vicent Marti committed -
A repository can have any number of references which we're not interested in such as notes or tags. For the default branch calculation we only care about branches. Make the decision about the number of branches rather than the number of refs in general.
Carlos Martín Nieto committed -
If we do not have a HEAD ref in the heads, we already know there is no default branch. Return immedately.
Carlos Martín Nieto committed -
Assert what we already do, so as to notice changes.
Carlos Martín Nieto committed -
This was added to avoid the remote's default branch to be considered to the be notes one which the first network test leaves behind.
Carlos Martín Nieto committed -
Carlos Martín Nieto committed
-
- 28 Aug, 2014 1 commit
-
-
Fix ahead-behind results
Vicent Marti committed
-