Ben Straub
df705148ec
API updates for remote.h
...
Includes typedef for git_direction, and renames for
GIT_DIR_[FETCH|PUSH] to GIT_DIRECTION_(\1).
2012-11-27 13:19:49 -08:00
Russell Belfer
a8122b5d4a
Fix warnings on Win64 build
2012-11-27 13:18:29 -08:00
Ben Straub
54b2a37ac7
Clean up config.h
2012-11-27 13:18:28 -08:00
Sascha Cunz
9094d30b93
Reset all static variables to NULL in clar's __cleanup
...
Without this change, any failed assertion in the second (or a later) test
inside a test suite has a chance of double deleting memory, resulting in
a heap corruption. See #1096 for details.
This leaves alone the test cases where we "just" use cl_git_sandbox_init()
and cl_git_sandbox_cleanup(). These methods already take good care to not
double delete a repository.
Fixes #1096
2012-11-23 11:41:56 +01:00
nulltoken
4e547eee31
test: fix memory leak
2012-11-13 07:12:53 +01:00
Ben Straub
2ff1a0d0f0
Helpers for local-filesystem remote URLs
2012-11-09 16:59:46 -08:00
Ben Straub
11fabe73a0
Local fetch: add tests
2012-11-09 10:33:10 -08:00
Justin Spahr-Summers
6edefa1491
Revert "Don't expect the 'empty-remote-url' remote to be listed"
...
Apparently git_remote_list() includes even remotes for which git_remote_load() would fail. Sorry @nulltoken, false alarm.
This reverts commit f358ec143c
.
2012-11-05 10:58:13 -08:00
Justin Spahr-Summers
f358ec143c
Don't expect the 'empty-remote-url' remote to be listed
...
CC @nulltoken
2012-11-05 10:45:26 -08:00
Justin Spahr-Summers
1fe99aeea3
Test for GITERR_INVALID
2012-11-05 10:44:48 -08:00
nulltoken
a2a618948c
remote: Add malformed remote load test
2012-11-04 23:08:17 -08:00
Russell Belfer
b90500f03d
Improve docs, examples, warnings
...
This improves docs in some of the public header files, cleans
up and improves some of the example code, and fixes a couple
of pedantic warnings in places.
2012-11-01 14:08:30 -07:00
Vicent Martí
7ae73e94db
Merge pull request #1030 from pwkelley/transports
...
Reorganize transport architecture
2012-11-01 09:15:29 -07:00
Philip Kelley
41fb1ca0ec
Reorganize transport architecture (squashed 3)
2012-11-01 09:02:33 -04:00
Ben Straub
81eecc342b
Fetch: don't clobber received count
...
This memset was being reached after the entire packfile under
WinHttp, so the byte count was being lost for small repos.
2012-10-29 13:34:14 -07:00
Russell Belfer
1b9346897b
Merge pull request #925 from nulltoken/topic/moving-branch-updates-config
...
Updates config upon moving and deletion of branches
2012-10-25 10:55:03 -07:00
Ben Straub
1fc375e6ef
Fix Windows build
...
Pedantic ordering of GIT_UNUSED vs. variable declarations.
2012-10-25 09:02:55 -07:00
nulltoken
fcccf3045f
remote: introduce git_remote_rename()
2012-10-25 17:42:36 +02:00
nulltoken
e497b16c57
remote: prevent from saving a nameless remote
2012-10-25 17:42:33 +02:00
Vicent Martí
1eb8cd7f87
Merge pull request #990 from ben/clone-callbacks
...
Progress callbacks
2012-10-25 08:16:13 -07:00
Ben Straub
1e3b8ed5cf
Remove 'bytes' param from git_remote_download
2012-10-24 14:07:07 -07:00
Ben Straub
7d222e1312
Network progress: rename things
...
git_indexer_stats and friends -> git_transfer_progress*
Also made git_transfer_progress members more sanely
named.
2012-10-24 13:29:14 -07:00
Vicent Martí
8a89aa1f57
Merge pull request #963 from carlosmn/remote-save-autotag
...
Save the autotag configuration for remotes
2012-10-22 12:04:48 -07:00
Ben Straub
216863c48f
Fetch/indexer: progress callbacks
2012-10-19 19:36:22 -07:00
Ben Straub
3028be0723
Add git_indexer_stats field to git_remote
...
Also removing all the *stats parameters from external
APIs that don't need them anymore.
2012-10-19 19:34:14 -07:00
nulltoken
68206c54bf
test: fix some memory leaks
2012-10-15 20:41:43 +02:00
Carlos Martín Nieto
a75770febc
tests: add a test for tag autofollow behaviour
...
Also tell ctest and valgrind to run libgit2_clar with '-iall' so we
run the network tests in travis.
2012-10-11 00:19:54 +02:00
Carlos Martín Nieto
218c88a968
remote: set/unset the autotag setting on save
...
Make the configuration option match the configured behavior when
saving a remote.
2012-10-02 13:09:18 +02:00
Carlos Martín Nieto
3665ba8eeb
refspec: add git_refspec__free, remove git_refspec_parse
...
The latter shouldn't be exposed and isn't used, git_refspec__parse
supersedes it.
Fix a leak in the refspec tests while we're at it.
2012-09-30 11:56:37 +02:00
nulltoken
0adfa20aef
refspec: introduce git_refspec__parse()
2012-09-25 07:49:15 +02:00
nulltoken
e16fc07f7e
refspec: No remote tracking ref from a fetchspec-less remote
2012-09-13 22:31:29 +02:00
Joshua Peek
e60af90498
Test trailing space after ref oid
2012-08-09 14:39:43 -05:00
Joshua Peek
6ab6829097
Parse ref oids without trailing newline
2012-08-09 12:39:09 -05:00
Vicent Marti
b41a30bdbb
Merge remote-tracking branch 'nulltoken/topic/branch-rework' into development
2012-07-27 18:45:55 +02:00
Sascha Cunz
eff5b49927
Remotes: Use correct url in git_remote_connect
2012-07-27 00:08:56 +02:00
Sascha Cunz
413d556384
Remotes: Save a cleaned pushurl (by deleting it from the config)
2012-07-27 00:08:54 +02:00
Sascha Cunz
8689a69d09
Tests: Test remote's pushurl
2012-07-26 23:08:24 +02:00
nulltoken
fb910281d6
branch: introduce git_branch_tracking()
2012-07-24 16:09:48 +02:00
nulltoken
5b07111529
tests: add test commit with angle brackets in the author name
2012-07-11 20:40:12 +02:00
yorah
454cc829f3
notes: add test resource with faked two-level fanout
2012-06-08 00:17:08 +02:00
Vicent Martí
b9ebcc59e7
Merge pull request #684 from benstraub/rev-parse
...
Rev parse
2012-06-07 12:29:31 -07:00
Vicent Marti
a146ba9e5b
tests: Fix warning with nested comments
2012-06-05 22:16:08 +02:00
Ben Straub
56a5000d58
Merge branch 'development' into rev-parse
...
Conflicts:
src/util.h
tests-clar/refs/branches/listall.c
2012-06-05 12:52:44 -07:00
Carlos Martín Nieto
01dbe273c9
Merge pull request #737 from nulltoken/topic/git_remote_add_refspec
...
Remotes and refspecs
2012-06-04 15:10:29 -07:00
nulltoken
d27bf66561
remote: Make git_remote_add() generate a default refspec with a force update specifier
2012-06-04 23:47:09 +02:00
Arthur Schreiber
36c88422ef
Add a failing test case for git_remote_disconnect/git_remote_connected.
2012-06-02 16:48:12 +02:00
nulltoken
d05e2c64dd
refspec: expose the force update specifier through git_refspec_force() accessor
2012-05-30 01:05:17 +02:00
Vicent Martí
904b67e69f
errors: Rename error codes
2012-05-18 01:48:50 +02:00
Vicent Martí
e172cf082e
errors: Rename the generic return codes
2012-05-18 01:26:26 +02:00
Ben Straub
92ad5a5cda
Rebasing onto libgit2/development: cleanup.
2012-05-11 11:55:20 -07:00