Commit Graph

10660 Commits

Author SHA1 Message Date
Scott J. Goldman
2eb1844990 Refactor CMakeLists.txt for mingw cross-compile
Two things:
1) By default, Linux CMake puts -fPIC on the link line. So we remove that
for MINGW to avoid warnings that it will be ignored.
2) Similarly, move -fvisibility=hidden flag to be for non-mingw
compilation only to avoid warnings that it will be ignored.
2012-05-26 18:37:40 -07:00
Scott J. Goldman
c1318f7125 Use lowercase names for Windows headers
Otherwise we can't cross-compile on Linux.
2012-05-26 18:16:13 -07:00
Carlos Martín Nieto
250b95b24b ssl: allow skipping the server certificate check
Sometimes it's useful not to perform the check. Allow it to be
configurable.
2012-05-26 21:17:08 +02:00
Vicent Martí
539e6c138e Merge pull request #732 from schu/fix-gcc-nonnull
tests-clar/core: fix non-null warning
2012-05-26 10:38:24 -07:00
Michael Schubert
dbab04594c tests-clar/core: fix non-null warning
gcc 4.7.0 apparently doesn't see that we won't call setenv with NULL as
second argument.
2012-05-26 14:59:07 +02:00
Russell Belfer
29ef309e2c Make errors for system and global files consistent
The error codes from failed lookups of system and global files
on Windows were not consistent with the codes returned on other
platforms.  This makes the error detection patterns match and
adds a unit test for the various errors.
2012-05-25 09:44:56 -07:00
Vicent Martí
4728b55ac6 Merge pull request #729 from arrbee/fix-728
Fix bugs for status
2012-05-24 17:43:17 -07:00
Russell Belfer
2a99df6909 Fix bugs for status with spaces and reloaded attrs
This fixes two bugs:

* Issue #728 where git_status_file was not working for files
  that contain spaces.  This was caused by reusing the "fnmatch"
  parsing code from ignore and attribute files to interpret the
  "pathspec" that constrained the files to apply the status to.
  In that code, unescaped whitespace was considered terminal to
  the pattern, so a file with internal whitespace was excluded
  from the matched files.  The fix was to add a mode to that code
  that allows spaces and tabs inside patterns.  This mode only
  comes into play when parsing in-memory strings.

* The other issue was undetected, but it was in the recently
  added code to reload gitattributes / gitignores when they were
  changed on disk.  That code was not clearing out the old values
  from the cached file content before reparsing which meant that
  newly added patterns would be read in, but deleted patterns
  would not be removed.  The fix was to clear the vector of
  patterns in a cached file before reparsing the file.
2012-05-24 17:14:56 -07:00
Vicent Martí
a4452eb1b9 Merge pull request #727 from libgit2/env-expansion
windows: Properly expand all environment variables
2012-05-24 15:12:18 -07:00
Russell Belfer
9cde607c95 Clean up system file finding tests on Win32 2012-05-24 15:08:55 -07:00
Vicent Martí
349fb6d7ac windows: Properly expand all environment variables 2012-05-24 23:10:12 +02:00
Russell Belfer
5f60fd0098 Merge pull request #726 from arrbee/utf16-home-dir
Get user's home dir in UTF-16 clean manner
2012-05-24 13:56:03 -07:00
Russell Belfer
9e35d7fd6e Fix bugs in UTF-8 <-> UTF-16 conversion
The function to convert UTF-16 to UTF-8 was only allocating a
buffer of wcslen(utf16str) bytes for the UTF-8 string, but that
is not sufficient if you have multibyte characters, and so when
those occured, the conversion was failing.  This updates the
conversion functions to use the Win APIs to calculate the correct
buffer lengths.

Also fixes a comparison in the unit tests that would fail if
you did not have a particular environment variable set.
2012-05-24 13:44:24 -07:00
Carlos Martín Nieto
d3e9c4a5fc repository: default to core.bare = false if it's not set
We used to consider a missing core.bare option to mean that the
repository was corrupt. This is too strict. Consider it a non-bare
repository if it's not set.
2012-05-24 21:54:19 +02:00
Russell Belfer
2305913007 Get user's home dir in UTF-16 clean manner
On Windows, we are having problems with home directories
that have non-ascii characters in them.  This rewrites the
relevant code to fetch environment variables as UTF-16 and
then explicitly map then into UTF-8 for our internal usage.
2012-05-24 12:45:20 -07:00
Carlos Martín Nieto
7eeec8f22d examples/network: consistently use tabs for indentation 2012-05-24 16:41:53 +02:00
Carlos Martín Nieto
88bfe790c0 README: use docs/rel-notes/ for the release notes 2012-05-24 13:38:25 +02:00
Vicent Martí
87ac556f2f Merge pull request #720 from nulltoken/fix/libgit2sharp_issue_153
Make git_futils_mkdir_r() able to cope with Windows network paths
2012-05-23 15:05:03 -07:00
Vicent Martí
c4c9de6a27 Merge pull request #712 from waywardmonkeys/embedded_makefile_fixes
Embedded makefile fixes
2012-05-23 15:03:07 -07:00
Vicent Martí
25804185b5 Merge pull request #716 from scottjg/examples-cleanup
Build fixes for examples/
2012-05-23 15:01:52 -07:00
Vicent Martí
335932651b Merge pull request #723 from carlosmn/rel-notes
Add notice about release notes
2012-05-23 10:10:04 -07:00
Carlos Martín Nieto
0f4d78d29d README: add rules about writing release notes as they happen 2012-05-23 17:12:14 +02:00
Carlos Martín Nieto
902bfd31f4 CONVENTIONS: Update error code names 2012-05-23 16:42:02 +02:00
Carlos Martín Nieto
8bf10dbab2 Remove left-over debugging output 2012-05-23 12:59:21 +02:00
nulltoken
dc07184fa9 fileops: Make git_futils_mkdir_r() able to cope with Windows network paths
Partially fix libgit2/libgit2sharp#153
2012-05-23 12:57:13 +02:00
Russell Sim
07b6b1e0fc updated changelog to match actual target release 2012-05-22 07:46:48 +10:00
Russell Sim
058d3b0a32 updated changelog 2012-05-22 00:45:07 +10:00
Russell Sim
86c4a77939 set build type to disable debug mode 2012-05-22 00:31:53 +10:00
Russell Sim
371a54238a updated compat and debhelper requirements to allow for hardening 2012-05-22 00:16:18 +10:00
Russell Sim
73c90d7882 Released Debian version 0.17.0-1 2012-05-21 22:53:13 +10:00
Russell Sim
d2f0d0f4e3 Build both static and shared libraries 2012-05-21 22:52:19 +10:00
Russell Sim
d2adea23dd updated symbols file, lintian override 2012-05-21 21:12:39 +10:00
Russell Sim
fed8c7eb94 removed patch for spelling error 2012-05-20 21:41:08 +10:00
Russell Sim
13cfc456b4 Merge branch 'upstream' 2012-05-20 21:37:36 +10:00
Russell Sim
6d6574ab60 updated to version 0.17.0 2012-05-20 21:35:32 +10:00
Russell Sim
0ec578d5a7 added lintian overrides 2012-05-20 21:24:11 +10:00
Russell Sim
b6568d4ea2 added dependency between libgit2-dev and libgit2-0 2012-05-20 21:24:04 +10:00
Russell Sim
f5d3f9675b squashed changelog 2012-05-20 21:23:56 +10:00
Russell Sim
dfc8d3c375 changed development package description 2012-05-20 21:23:51 +10:00
Russell Sim
c3fc1f604a generalised installed files 2012-05-20 21:23:46 +10:00
Russell Sim
b23f854d6b added patch to fix minor spelling mistake 2012-05-20 21:23:41 +10:00
Russell Sim
3a282033f5 added symbols file 2012-05-20 21:23:32 +10:00
Russell Sim
44628f081a fixed 2 lintian errors 2012-05-20 21:23:28 +10:00
Russell Sim
45adeafb35 added symbol generation support 2012-05-20 21:23:23 +10:00
Russell Sim
7c3cad40e4 renamed clay to clar in copyright file 2012-05-20 21:23:15 +10:00
Russell Sim
93108bd538 changed package description 2012-05-20 21:23:09 +10:00
Russell Sim
2af1fda879 removed unused readme file 2012-05-20 21:23:06 +10:00
Russell Sim
b788cc0ac9 updated description field 2012-05-20 21:22:58 +10:00
Russell Sim
b06de9b00d added configure options for building tests 2012-05-20 21:22:25 +10:00
Russell Sim
7d42bce013 fixed up gpl exception listing 2012-05-20 21:22:20 +10:00