Edward Thomson
392702ee2c
allocations: test for overflow of requested size
...
Introduce some helper macros to test integer overflow from arithmetic
and set error message appropriately.
2015-02-12 22:54:46 -05:00
Carlos Martín Nieto
d24a5312d8
Merge pull request #2866 from ethomson/checkout_perf2
...
Checkout performance
2015-02-12 02:34:58 +01:00
Carlos Martín Nieto
8e29ae7310
Merge pull request #2862 from jeffhostetler/jeffhostetler/bug/branch_create_after_namespace
...
Remove stale reflog namespace directory before branch creation
2015-02-12 00:43:01 +01:00
Carlos Martín Nieto
e07c1e1a15
Merge pull request #2880 from ethomson/mkdir_root
...
Ensure we can make a repo at the root of the filesystem
2015-02-12 00:40:12 +01:00
Carlos Martín Nieto
6dbbced2b1
Merge pull request #2889 from jeffhostetler/jeffhostetler/merge_performance
...
Large merge perf test.
2015-02-12 00:27:17 +01:00
Jeff Hostetler
d97ba7f674
Large merge perf test.
2015-02-06 15:45:59 -05:00
Edward Thomson
83276dccbe
Update clar to d17c7f6
2015-02-05 13:24:38 -05:00
Edward Thomson
3c68bfcd08
stat: don't remove trailing '/' from root on win32
...
`p_stat` calls `git_win32_path_from_utf8`, which canonicalizes the
path. Do not further try to modify the path, else we trim the
trailing slash from a root directory and try to access `C:` instead
of `C:/`.
2015-02-05 12:27:16 -05:00
Edward Thomson
865baaf928
repo: ensure we can create repo at filesystem root
...
Test to ensure that we can create a repository at the filesystem
root. Introduces a new test environment variable,
`GITTEST_INVASIVE_FILESYSTEM` for tests that do terrible things like
escaping the clar sandbox and writing to the root directory. It is
expected that the CI builds will enable this but that normal people
would not want this.
2015-02-05 11:59:03 -05:00
Edward Thomson
9bf5bd7cd8
Merge pull request #2867 from ethomson/8dot3
...
Handle 8dot3 filenames being disabled on Win32
2015-02-05 09:19:46 -05:00
Edward Thomson
fa89ff20cd
remove some unused warnings
2015-02-04 14:15:13 +00:00
Edward Thomson
f45f9b6dbc
structinit test: use %PRIuZ instead of %d for size_t
2015-02-04 03:52:34 +00:00
Edward Thomson
07c989e98d
win32: further cleanups for 8.3 disabling
2015-02-03 20:01:24 -05:00
Edward Thomson
5f28ec84a1
win32: cleanup 8.3 disabled tests
2015-02-03 12:23:04 -05:00
Jeff Hostetler
1589a93aa6
Fix branch creation when branch name matches namespace of previously deleted branch
2015-02-03 10:33:04 -05:00
Edward Thomson
60561d5446
tests: update for new test data
2015-02-02 22:46:43 -05:00
Edward Thomson
2fbce0bfac
checkout test: ensure .gitattributes lifecycle
...
The .gitattributes cache should not reload .gitattributes in the
middle of checking out, only between checkout operations. Otherwise,
we'll spend all our time stat'ing and read'ing the gitattributes.
2015-02-02 22:46:39 -05:00
Edward Thomson
f83c19c87d
Merge pull request #2832 from ethomson/appveyor_badge
...
64-bit Appveyor Builds
2015-01-30 14:16:45 -05:00
Linquize
9dcc4a36f7
Fix test failures when 8.3 is disabled
2015-01-31 00:09:31 +08:00
Edward Thomson
1ac5acdc69
Merge pull request #2819 from libgit2/cmn/config-get-path
...
config: add parsing and getter for paths
2015-01-26 11:28:59 -06:00
Edward Thomson
7c48508b28
structinit test: only run on DEBUG builds
...
The structinit tests don't make sense unless structure padding
is uniformly initialized, which is unlikely to happen on release
builds. Only enable them for DEBUG builds. Further, rename them
to core::structinit.
2015-01-21 12:55:17 -06:00
Edward Thomson
0ad5c845d2
structinit test: show which byte differs
2015-01-21 11:53:20 -06:00
Edward Thomson
e0902fbce7
checkout tests: cleanup realpath impl on Win32
2015-01-20 17:13:52 -06:00
Edward Thomson
53eb139dcb
checkout tests: emulate p_realpath poorly on Win32
2015-01-20 17:13:41 -06:00
Edward Thomson
e74340b000
checkout: remove files before writing new ones
...
On case insensitive filesystems, we may have files in the working
directory that case fold to a name we want to write. Remove those
files (by default) so that we will not end up with a filename that
has the unexpected case.
2015-01-20 17:13:31 -06:00
Edward Thomson
232bc89598
checkout tests: nasty symlinks
...
Symbolic links that abuse case insensitivity to write into .git.
2015-01-20 17:13:09 -06:00
Edward Thomson
1fbfcdfcd0
git_path_join_unrooted: return base len
...
The documentation for `git_path_join_unrooted` states that the base
length will be returned, so that consumers like checkout know where
to start creating directories instead of always creating directories
at the directory root.
2015-01-20 17:12:35 -06:00
Edward Thomson
1d50b3649d
checkout: introduce git_checkout_perfdata
...
Checkout can now provide performance data about the number of (some)
syscalls performed using an optional callback.
2015-01-20 17:12:23 -06:00
Linquize
b4c6a9da93
Add files and tests with many UTF-8 chars and few UTF-8 chars
2015-01-20 16:17:48 -06:00
Sven Strickroth
0161e096a3
Make binary detection work similar to vanilla git
...
Main change: Don't treat chars > 128 as non-printable (common in UTF-8 files)
Signed-off-by: Sven Strickroth <email@cs-ware.de>
2015-01-20 16:17:37 -06:00
Carlos Martín Nieto
eac773d92b
config: add parsing and getter for paths
2015-01-14 19:36:50 +01:00
Edward Thomson
85880693d5
Merge branch 'pr/2740'
2015-01-14 10:19:28 -06:00
Pierre-Olivier Latour
36fc549781
Added GIT_HASHSIG_ALLOW_SMALL_FILES to allow computing signatures for small files
...
The implementation of the hashsig API disallows computing a signature on
small files containing only a few lines. This new flag disables this
behavior.
git_diff_find_similar() sets this flag by default which means that rename
/ copy detection of small files will now work. This in turn affects the
behavior of the git_status and git_blame APIs which will now detect rename
of small files assuming the right options are passed.
2015-01-14 10:17:56 -06:00
Carlos Martín Nieto
d4b2410126
Merge commit '4b1018d24f980273528743c27c47ceb96cb720bd'
...
Fix crash in free() when git_buf_grow() fails.
2015-01-09 16:47:48 +01:00
Jeff Hostetler
4b1018d24f
Fix crash in free() when git_buf_grow() fails.
2015-01-09 16:46:44 +01:00
Carlos Martín Nieto
fe8399fe9b
Fix warning
2015-01-09 16:29:08 +01:00
Carlos Martín Nieto
788c5f1ca8
Merge pull request #2810 from ethomson/remove_symlinks
...
Remove symlinks from the repository
2015-01-09 10:23:08 +01:00
Edward Thomson
365d367238
submodule::init tests: free some leaks
2015-01-08 22:31:15 +00:00
Edward Thomson
3b40ed897f
repo::init test: create hook symlink
...
Remove the hook symlink from the test resources, so that we can
have a source tree that is easy to zip up and copy around on systems
that don't support symlinks. Create it dynamically at test execution
instead.
2015-01-08 19:23:37 +00:00
Edward Thomson
1646412d8f
Merge pull request #2802 from calavera/remote_create_prune_config
...
Load prune configuration when a remote is created.
2015-01-08 11:20:44 -06:00
David Calavera
de4a75f977
Fix more indentation.
2015-01-07 09:26:36 -08:00
David Calavera
c868981f0e
Add extern function to initialize submodule update options.
2015-01-07 09:04:49 -06:00
David Calavera
66b71ea5f5
Fix intentation.
2015-01-05 13:33:36 -08:00
David Calavera
1ef3f0cebb
Load prune configuration when a remote is created.
2015-01-05 13:24:11 -08:00
Carlos Martín Nieto
0c6012293a
Merge commit 'refs/pull/2632/head' of github.com:libgit2/libgit2
2015-01-05 20:10:43 +00:00
Carlos Martín Nieto
c4a2fd5c1d
Plug a couple of leaks
2015-01-04 17:39:43 +00:00
Edward Thomson
a3ef70bb40
Merge pull request #2761 from libgit2/cmn/fetch-prune
...
Remote-tracking branch prunning
2014-12-30 11:53:55 -06:00
Edward Thomson
c4c47fc286
Merge pull request #2762 from libgit2/cmn/hide-push
...
remote: remove git_push from the public API
2014-12-30 11:53:45 -06:00
Carlos Martín Nieto
fe794b2ea7
remote: remove git_push from the public API
...
Instead we provide git_remote_upload() and git_remote_update_tips() in
order to have a parallel API for fetching and pushing.
2014-12-30 17:02:50 +00:00
Carlos Martín Nieto
208a2c8aef
treebuilder: rename _create() to _new()
...
This function is a constructor, so let's name it like one and leave
_create() for the reference functions, which do create/write the
reference.
2014-12-27 12:09:11 +00:00