Commit Graph

10689 Commits

Author SHA1 Message Date
Nicolas Braud-Santoni
93cbacd419 Start work on v0.27.0+dfsg.1-0.1 2018-05-02 22:31:20 +02:00
Pirate Praveen
9fd6a8dfbe Update upstream source from tag 'upstream/0.27.0+dfsg.1'
Update to upstream version '0.27.0+dfsg.1'
with Debian dir 5579c7c802
2018-04-26 18:06:14 +05:30
Pirate Praveen
eae0bfdcd8 New upstream version 0.27.0+dfsg.1 2018-04-26 18:06:07 +05:30
Nicolas Braud-Santoni
2d7701fbd6
Update changelog for v0.26.0+dfsg.1-1.2 2018-02-14 16:34:21 +01:00
Nicolas Braud-Santoni
5d823cc851
debian/source/lintian-overrides: Rename tag 2018-02-14 16:32:18 +01:00
Nicolas Braud-Santoni
77934a2488
Relocate source.lintian-overrides 2018-02-14 16:31:18 +01:00
Nicolas Braud-Santoni
7e19bc6b6c
Remove empty Lintian override files 2018-02-14 16:30:52 +01:00
Nicolas Braud-Santoni
19e0294094
debian/watch: Fix version numbering 2018-02-14 16:22:45 +01:00
Nicolas Braud-Santoni
62c37f4fe7
Prepare upload v0.26.0+dfsg.1-1.2 2018-01-20 00:00:22 +01:00
Nicolas Braud-Santoni
7599dcb30b debian/control: Use an HTTPS URLs for the homepage 2018-01-19 23:55:32 +01:00
Nicolas Braud-Santoni
cdcbed4385 Switch to debhelper 11 2018-01-19 23:54:58 +01:00
Nicolas Braud-Santoni
d17a791ca9
debian/control: Use canonical Vcs-* URLs 2018-01-14 20:03:16 +01:00
Nicolas Braud-Santoni
0cc72a0203
debian/control: Bump Standards-Version to 4.1.3
Replaced `Priority: extra` with `optional`
2018-01-14 20:01:51 +01:00
Nicolas Braud-Santoni
1df7aaca5d
debian/copyright: Use HTTPS URIs 2018-01-14 20:01:48 +01:00
Nicolas Braud-Santoni
0727e12550
debian/copyright: Refer to the CC0 license file
Closes #882632
2018-01-14 20:01:28 +01:00
Ximin Luo
03d8b96ec4 Release 0.26.0+dfsg.1-1.1 to Debian unstable. 2017-09-14 11:52:25 +02:00
Ximin Luo
ce4209fdfd Use git_curl_stream_new for HTTPS because we don't link against openssl 2017-08-01 16:32:00 +02:00
Ximin Luo
396d8f37ce Update d/watch to follow naming conventions
+dfsg1 is more conventional, but if +dfsg.1 is desired then feel free to revert,
but also update dversionmangle=s/\+dfsg\.\d*$// as well.
2017-07-31 15:13:09 +02:00
Russell Sim
f8a68096f5 Release 0.26.0+dfsg.1-1 2017-07-29 19:24:28 +02:00
Russell Sim
f39d7f619d Remove deps folder (fixes #861752) 2017-07-29 19:23:16 +02:00
Russell Sim
314db939a7 Enable GSSAPI Auth 2017-07-29 19:23:07 +02:00
Russell Sim
3a4dfcf19a Upstream version 0.26.0+dfsg.1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEqR4jDDCme6EynCdoIrEJKt3cR90FAll8ukcACgkQIrEJKt3c
 R92ggA/+OOPMqkw45XX6Nd6MsdwBPK093dW007puAojKm5i0X7njoanIGPNcajjv
 X44S9usihAx2WR/Fui5qgf4MLM/yMsam3wUonJnFVvZSmAv+iNjvxpDwyp/KetMA
 P7E00SbJHSyJr6wB1XyYoBM2Sdye5rmPRuR11oxNW9Twlip0aBudCj43+U1ESWBm
 iyXFidF83bhiJJd8as8VFaWwkJTar5eCSpwb7eN8H+nw5twoVLuH+HRdttQjw6e4
 OYzrMJZyjqn88N3wsIlL21gPkeqFQ1IYThi4FlO7z3+AKBA2hvctYdlNI3bYzqCB
 bkt3G5M43+QfjZVHW4XIYDdUak7Cs91U6FVqKhV5stkfCz/Mhjn7PByqEmZeX/tA
 srA82Sx4R/IblhwnnFvWcB54/51QE0TlF6kOhOl3pverwcB0/5vPPK/TJ4QabG5G
 hZO1x2xgNs3zuRoDTXa53DlrbH4KnCN0ep/O63P/Jbl6z2DzUwRq5RHhY6W0pwGB
 cQKODatc885zkAEZzDMRO1E+ME6Yo6jQiwcKm0Og0UL7MKIRb5Guioqn83gHX+lh
 s2KgZpK1u555KfkvtmVSzNQBbQlGF8UtFUuQlbyNYcAcJLrCNjjbfEohKAjnhG6L
 qHf4LQMa0SH+PzdHlmUNHEYIpPwWS1T0gV7gf3gi66AcxOK60i8=
 =kFuv
 -----END PGP SIGNATURE-----

Merge tag 'upstream/0.26.0+dfsg.1'

Upstream version 0.26.0+dfsg.1

* tag 'upstream/0.26.0+dfsg.1': (367 commits)
  DFSG changes
  CHANGELOG: document git_filter_init and GIT_FILTER_INIT
  Adding git_filter_init for initializing `git_filter` struct + unit test
  adding GIT_FILTER_VERSION to GIT_FILTER_INIT as part of convention
  tests: odb: add more low-level backend tests
  tests: odb: implement `exists_prefix` for the fake backend
  tests: odb: use correct OID length
  tests: odb: have the fake backend detect ambiguous prefixes
  tests: core: test initialization of `git_proxy_options`
  tests: network: add missing include for `git_repository_new`
  cmake: disable optimization on debug builds
  cmake: set "-D_DEBUG" on non-Windows platforms
  cmake: remove stale comment on precompiled headers
  travis: replace use of deprecated homebrew/dupes tap
  travis: install openssl explicitly
  remote: ensure we can create an anon remote on inmemory repo
  repository: don't fail to create config option in inmemory repo
  repository_item_path: return ENOTFOUND when appropriate
  tests: odb: add tests with multiple backends
  tests: odb: allow passing fake objects to the fake backend
  ...
2017-07-29 19:22:48 +02:00
Russell Sim
dc7f361943 DFSG changes
Remove deps/
2017-07-29 18:38:08 +02:00
Russell Sim
4f895057f3 Imported Upstream version 0.26.0 2017-07-29 15:51:23 +02:00
Russell Sim
c83179b1d7 Release 0.25.1.0-1 2017-07-27 08:20:19 +02:00
Edward Thomson
15e1193750 CHANGELOG: document git_filter_init and GIT_FILTER_INIT 2017-06-14 13:31:20 +02:00
Edward Thomson
8296da5f60 Merge pull request #4267 from mohseenrm/master
adding GIT_FILTER_VERSION to GIT_FILTER_INIT as part of convention
2017-06-14 10:49:28 +02:00
Edward Thomson
4e257dab4a Merge pull request #4268 from pks-t/pks/homebrew-dupes-deprecation
travis: replace use of deprecated homebrew/dupes tap
2017-06-14 10:48:04 +02:00
Edward Thomson
953427b379 Merge pull request #4269 from pks-t/pks/tests
Test improvements
2017-06-14 10:47:55 +02:00
Mohseen Mukaddam
a78441bc46 Adding git_filter_init for initializing git_filter struct + unit test 2017-06-13 11:05:40 -07:00
Mohseen Mukaddam
7f7dabdaac adding GIT_FILTER_VERSION to GIT_FILTER_INIT as part of convention 2017-06-13 10:59:25 -07:00
Patrick Steinhardt
a180e7d95e tests: odb: add more low-level backend tests
Introduce a new test suite "odb::backend::simple", which utilizes the
fake backend to exercise the ODB abstraction layer. While such tests
already exist for the case where multiple backends are put together, no
direct testing for functionality with a single backend exist yet.
2017-06-13 11:44:09 +02:00
Patrick Steinhardt
b2e53f3692 tests: odb: implement exists_prefix for the fake backend
The fake backend currently implements all reading functions except for
the `exists_prefix` one. Implement it to enable further testing of the
ODB layer.
2017-06-13 11:43:20 +02:00
Patrick Steinhardt
983e627d10 tests: odb: use correct OID length
The `search_object` function takes the OID length as one of its
parameters, where its maximum length is `GIT_OID_HEXSZ`. The `exists`
function of the fake backend used `GIT_OID_RAWSZ` though, leading to
only the first half of the OID being used when finding the correct
object.
2017-06-13 11:41:29 +02:00
Patrick Steinhardt
c4cbb3b16e tests: odb: have the fake backend detect ambiguous prefixes
In order to be able to test the ODB prefix functions, we need to be able
to detect ambiguous prefixes in case multiple objects with the same
prefix exist in the fake ODB. Extend `search_object` to detect ambiguous
queries and have callers return its error code instead of always
returning `GIT_ENOTFOUND`.
2017-06-13 11:40:05 +02:00
Patrick Steinhardt
95170294a1 tests: core: test initialization of git_proxy_options
Initialization of the `git_proxy_options` structure is never tested
anywhere. Include it in our usual initialization test in
"core::structinit::compare".
2017-06-13 11:35:48 +02:00
Patrick Steinhardt
bee423cc26 tests: network: add missing include for git_repository_new
A newly added test uses the `git_repository_new` function without the
corresponding header file being included. While this works due to the
compiler deducing the correct function signature, we should obviously
just include the function's declaration file.
2017-06-13 11:34:49 +02:00
Patrick Steinhardt
a64532e107 cmake: disable optimization on debug builds
While our debug builds on MSVC platforms already tune the code optimizer
to aid debugging code, all the other platforms still use the default
optimization level. This makes it hard for developers on these platforms
to actually debug code while maintaining his sanity due to optimizations
like inlined code, elided variables etc.

To help this common use case, we can simply follow the MSVC example and
turn off code optimization with "-O0" for debug builds. While it would
be preferable to instead use "-Og" supported by more modern compilers,
we cannot guarantee that this level is available on all supported
platforms.
2017-06-13 11:27:01 +02:00
Patrick Steinhardt
613999534e cmake: set "-D_DEBUG" on non-Windows platforms
In our code base, we have some occasions where we use the "_DEBUG"
preprocessor macro to enable additional code which should not be part of
release builds. While we define this flag on MSVC platforms, it is
guarded by the conditional `WIN32 AND NOT CYGWIN` on other platforms
since 19be3f9e6 (Improve MSVC compiler, linker flags, 2013-02-13). While
this condition can be fulfilled by the MSVC platform, it is never
encountered due to being part of the `ELSE` part of `IF (MSVC)`.

The intention of the conditional was most likely to avoid the
preprocessor macro on Cygwin platforms, but to include it on everthing
else. As such, the correct condition here would be `IF (NOT CYGWIN)`
instead. But digging a bit further, the condition is only ever used in
two places:

1. To skip the test in "core::structinit", which should also work on
   Cygwin.
2. In "src/win32/git2.rc", where it is used to set additional file
   flags. As this file is included in MSVC builds only, it cannot cause
   any harm to set "_DEBUG" on Cygwin here.

As such, we can simply drop the conditional and always set "-D_DEBUG" on
all platforms.
2017-06-13 11:14:53 +02:00
Patrick Steinhardt
e94be4c01c cmake: remove stale comment on precompiled headers
In commit 9f75a9ce7 (Turning on runtime checks when building debug under
MSVC., 2012-03-30), we introduced a comment "Precompiled headers", which
actually refers to no related commands. Seeing that the comment never
had anything to refer to, we can simply remove it here.
2017-06-13 11:11:34 +02:00
Patrick Steinhardt
96d0298921 travis: replace use of deprecated homebrew/dupes tap
The formulae provided by the homebrew/dupes tap are deprecated since at
least April 4, 2017, with formulae having been migrated to
homebrew/core.

Replace the deprecated reference to "homebrew/dupes/zlib" with only
"zlib".
2017-06-13 08:13:48 +02:00
Edward Thomson
2ca088bd2b Merge pull request #4265 from pks-t/pks/read-prefix-tests
Read prefix tests
2017-06-12 22:47:54 +01:00
Edward Thomson
99e40a67c7 Merge pull request #4263 from libgit2/ethomson/config_for_inmemory_repo
Allow creation of a configuration object in an in-memory repository
2017-06-12 21:23:44 +01:00
Edward Thomson
d9914fb7c6 Merge pull request #4266 from libgit2/ethomson/travis-explicit-openssl
travis: install openssl explicitly
2017-06-12 21:22:27 +01:00
Edward Thomson
844e85f21d travis: install openssl explicitly 2017-06-12 20:00:21 +01:00
Edward Thomson
fe9a5dd3ca remote: ensure we can create an anon remote on inmemory repo
Given a wholly in-memory repository, ensure that we can create an
anonymous remote and perform actions on it.
2017-06-12 16:51:05 +01:00
Edward Thomson
2d486781df repository: don't fail to create config option in inmemory repo
When in an in-memory repository - without a configuration file - do not
fail to create a configuration object.
2017-06-12 16:51:04 +01:00
Edward Thomson
9d49a43c71 repository_item_path: return ENOTFOUND when appropriate
Disambiguate error values: return `GIT_ENOTFOUND` when the item cannot
exist in the repository (perhaps because the repository is inmemory or
otherwise not backed by a filesystem), return `-1` when there is a hard
failure.
2017-06-12 16:51:04 +01:00
Patrick Steinhardt
f148258a35 tests: odb: add tests with multiple backends
Previous to pulling out and extending the fake backend, it was quite
cumbersome to write tests for very specific scenarios regarding
backends. But as we have made it more generic, it has become much easier
to do so. As such, this commit adds multiple tests for scenarios with
multiple backends for the ODB.

The changes also include a test for a very targeted scenario. When one
backend found a matching object via `read_prefix`, but the last backend
returns `GIT_ENOTFOUND` and when object hash verification is turned off,
we fail to reset the error code to `GIT_OK`. This causes us to segfault
later on, when doing a double-free on the returned object.
2017-06-12 17:24:53 +02:00
Patrick Steinhardt
6e010bb126 tests: odb: allow passing fake objects to the fake backend
Right now, the fake backend is quite restrained in the way how it
works: we pass it an OID which it is to return later as well as an error
code we want it to return. While this is sufficient for existing tests,
we can make the fake backend a little bit more generic in order to allow
us testing for additional scenarios.

To do so, we change the backend to not accept an error code and OID
which it is to return for queries, but instead a simple array of OIDs
with their respective blob contents. On each query, the fake backend
simply iterates through this array and returns the first matching
object.
2017-06-12 17:24:53 +02:00