Russell Belfer
abfed59c27
Clean up one other mode_t assertion
2013-09-04 16:23:00 -07:00
Russell Belfer
780f3e540f
Make tests take umask into account
...
It seems that libgit2 is correctly applying the umask when
initializing a repository from a template and when creating new
directories during checkout, but the test suite is not accounting
for possible variations due to the umask. This updates that so
that the test suite will work regardless of the umask.
2013-09-04 16:23:00 -07:00
Russell Belfer
cf94024c58
Update clar
2013-09-04 16:23:00 -07:00
Ben Straub
61d57b7a21
Test pushing to remotes with "file:///" urls
2013-09-04 14:27:59 -07:00
Ben Straub
f42d546c63
Provide better errors for push on non-bare local remotes
2013-09-04 13:07:42 -07:00
Vicent Martí
e98535923b
Merge pull request #1817 from libgit2/ntk/fix/backend/honor_refresh_capabilities
...
Of backends and refreshers...
2013-09-04 06:20:36 -07:00
Vicent Marti
74b38d199e
Backport @peff's fix for duplicates in sha1_lookup
2013-09-04 13:16:57 +02:00
nulltoken
b1a6c316a6
odb: Move the auto refresh logic to the pack backend
...
Previously, `git_object_read()`, `git_object_read_prefix()` and
`git_object_exists()` were implementing an auto refresh logic. When the
expected object couldn't be found in any backend, a call to
`git_odb_refresh()` was triggered and the lookup was once again performed
against all backends.
This commit removes this auto-refresh logic from the odb layer and pushes
it down into the pack-backend (as it's the only one currently exposing
a `refresh()` endpoint).
2013-09-04 07:44:53 +02:00
Vicent Martí
6700cb9925
Merge pull request #1828 from libgit2/examples-cmakelists
...
Split examples CMakeLists.txt
2013-09-03 15:54:45 -07:00
Russell Belfer
60ee53dfce
Split examples CMakeLists.txt
...
Also, this converts the examples/CMakeLists.txt from explicitly
listing to just globbing for all the individual C files.
2013-09-03 15:20:16 -07:00
Russell Belfer
d31e5655c2
Merge pull request #1827 from libgit2/relative-path-win32-fix
...
Fix resolving relative windows network paths
2013-09-03 15:19:13 -07:00
Russell Belfer
cae5293854
Fix resolving relative windows network paths
2013-09-03 14:00:27 -07:00
Russell Belfer
0d1af399e9
don't use inline in tests for win32
2013-09-03 12:33:34 -07:00
Vicent Martí
6208bd499b
Merge pull request #1804 from ethomson/rewrites
...
Minor changes for rewrites
2013-09-03 12:29:18 -07:00
Russell Belfer
37fc44ddff
Merge pull request #1825 from nvloff/resolve_relative
...
path: properly resolve relative paths
2013-09-03 12:27:56 -07:00
Nikolai Vladimirov
6d9a6c5cec
path: properly resolve relative paths
2013-09-03 20:45:53 +03:00
Vicent Martí
b595b385df
Merge pull request #1814 from libgit2/is-empty-fix
...
Fix incorrect precedence within git_repository_is_empty()
2013-09-03 04:11:07 -07:00
Vicent Martí
c46fe0c651
Merge pull request #1823 from kadamski/building4android
...
Small changes enabling compiling libgit2 for Android.
2013-09-02 03:01:40 -07:00
Vicent Martí
7b2b6da661
Merge pull request #1822 from kadamski/examples-cleanup
...
Small cleanup in examples.
2013-09-01 13:39:11 -07:00
Krzysztof Adamski
01cd5ae377
Add instructions about buiding for Android to README.md
2013-09-01 19:48:01 +02:00
Krzysztof Adamski
5c37f00505
Build all example files if BUILD_EXAMPLES used.
2013-09-01 19:00:16 +02:00
Krzysztof Adamski
255836ddac
Adding credentials callback to ls-remote and fetch too.
2013-09-01 19:00:16 +02:00
Krzysztof Adamski
d6d523486c
Removing unneeded code duplication in ls-remote.c
2013-09-01 19:00:16 +02:00
Krzysztof Adamski
3b75b684a1
Define S_IREAD i S_IWRITE for Android.
2013-09-01 18:53:07 +02:00
Krzysztof Adamski
b1447edebc
Use git__insertsort_r on Android too.
2013-09-01 18:47:56 +02:00
Krzysztof Adamski
82b2fc2c83
Create ANDROID build option
...
CMake seems not to support Android as a target and this option
lets us test this in CMakeLists.txt.
2013-09-01 18:45:36 +02:00
Vicent Martí
ac2e7dc6fb
Merge pull request #1820 from linquize/git_oid_streq
...
Update documentation of git_oid_streq to remove outdated error code
2013-09-01 08:40:48 -07:00
Vicent Martí
ce9390858f
Merge pull request #1819 from linquize/git_oid_shorten_add
...
oid: git_oid_shorten_add() sets GITERR_INVALID when OID set is full
2013-09-01 08:40:10 -07:00
Carlos Martín Nieto
f2cda906e5
Point to the right Go bindings
2013-08-31 17:42:38 +02:00
Carlos Martín Nieto
749871c240
Merge pull request #1821 from n1rvana/development
...
Update readme to point to the currently maintained Erlang bindings.
2013-08-31 08:40:49 -07:00
Nirvana
a402179ae5
Update readme to point to the currently maintained Erlang bindings. Namely: https://github.com/carlosmn/geef
2013-08-31 09:25:25 -04:00
Linquize
d45e9480e7
oid: git_oid_shorten_add() sets GITERR_INVALID when OID set is full
2013-08-31 18:22:50 +08:00
Linquize
e68938e0b9
Update documentation of git_oid_streq to remove outdated error code
2013-08-31 18:19:44 +08:00
nulltoken
9b4ed214f4
odb: Code beautification
2013-08-30 23:19:02 +02:00
nulltoken
a12e069a3e
odb: Honor the non refreshing capability of a backend
2013-08-30 23:19:02 +02:00
Russell Belfer
4218183631
Treat detached HEAD as non-empty repo
...
This simplifies the git_repository_is_empty a bit so that a
detached HEAD is just taken to mean the repo is not empty, since
a newly initialized repo will not have a detached HEAD.
2013-08-29 10:27:01 -07:00
Vicent Martí
8b2f230cd5
repository: Make the is_empty check more explicit
2013-08-29 13:27:37 +02:00
Carlos Martín Nieto
0001c02316
Fix typo _delete -> _free
2013-08-29 13:22:44 +02:00
Justin Spahr-Summers
4ab6a759f6
Fix incorrect precedence within git_repository_is_empty()
...
Reverts part of 9146f1e57e
.
2013-08-28 22:51:57 -07:00
Russell Belfer
19b9a09209
Add stddef include for sortedcache
...
All use of sortedcache will need this header, so put it in the
definition of the sortedcache API.
2013-08-28 11:20:47 -07:00
Vicent Martí
dbecec37a7
Merge pull request #1805 from libgit2/threading-packed-load
...
Thread safety for the refdb_fs
2013-08-28 09:38:14 -07:00
Russell Belfer
b2d3efcbce
Some documentation improvements
2013-08-28 09:31:32 -07:00
Edward Thomson
17c7fbf6d2
Split rewrites, status doesn't return rewrites
...
Ensure that we apply splits to rewrites, even if we're not
interested in examining it closely for rename/copy detection.
In keeping with core git, status should not display rewrites,
it should simply show files as "modified".
2013-08-28 08:30:19 -05:00
Vicent Martí
1ef05e3f0e
Merge pull request #1803 from libgit2/ntk/topic/even_more_lenient_remote_parsing
...
Even more lenient remote parsing
2013-08-28 06:05:50 -07:00
Vicent Martí
d07cc8a2f7
Merge pull request #1808 from frasertweedale/fix/freebsd-dup-include
...
netops: remove duplicate include
2013-08-28 06:05:07 -07:00
Vicent Martí
b8b22d774e
Merge pull request #1772 from libgit2/config-iter
...
Configuration iterators redux
2013-08-28 06:04:51 -07:00
Vicent Martí
21a3bbe419
Merge pull request #1812 from ethomson/version_check
...
Windows XP updates
2013-08-27 19:26:54 -07:00
Edward Thomson
1ff3a09415
Improve win32 version check, no ipv6 tests on XP
2013-08-27 19:44:35 -05:00
Russell Belfer
f087bc245e
Convert to our own SRWLOCK type on Win32
2013-08-27 12:08:55 -07:00
nulltoken
aec87f712f
remote: Make git_remote_list() detect pushurl
2013-08-27 20:14:10 +02:00