1. 05 11月, 2009 1 次提交
    • S
      Git-aware CGI to provide dumb HTTP transport · 2f4038ab
      Shawn O. Pearce 提交于
      The git-http-backend CGI can be configured into any Apache server
      using ScriptAlias, such as with the following configuration:
      
        LoadModule cgi_module /usr/libexec/apache2/mod_cgi.so
        LoadModule alias_module /usr/libexec/apache2/mod_alias.so
        ScriptAlias /git/ /usr/libexec/git-core/git-http-backend/
      
      Repositories are accessed via the translated PATH_INFO.
      
      The CGI is backwards compatible with the dumb client, allowing all
      older HTTP clients to continue to download repositories which are
      managed by the CGI.
      Signed-off-by: NShawn O. Pearce <spearce@spearce.org>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      2f4038ab
  2. 10 10月, 2009 1 次提交
  3. 09 10月, 2009 3 次提交
    • B
      Makefile: add a note about the NO_MMAP setting on IRIX and IRIX64 · 651aef34
      Brandon Casey 提交于
      When git is compiled with the MIPSpro 7.4.4m compiler, and NO_PTHREADS is
      set, and NO_MMAP is _not_ set, then git segfaults when trying to access the
      first entry in a reflog.  If NO_PTHREADS is not set (which implies that the
      pthread library is linked in), or NO_MMAP _is_ set, then the segfault is
      not encountered.  The conservative choice has been made to set NO_MMAP in
      the Makefile to avoid this flaw.  The GNU C compiler does not produce this
      behavior.
      
      The segfault happens in refs.c:read_ref_at().  The mmap succeeds, and the
      loop is executed properly until rec is rewound into the first line (reflog
      entry) of the file.  The segfault is caught by test 28 of
      t1400-update-ref.sh which fails when 'git rev-parse --verify "master@{May 25
      2005}"' is called.
      
      So, add a comment in the Makefile to describe why NO_MMAP is set and as a
      hint to those who may be interested in unsetting it.
      Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      651aef34
    • B
      Makefile: enable THREADED_DELTA_SEARCH on IRIX and IRIX64 · 817350d3
      Brandon Casey 提交于
      Since commit dcda3614 removed the use of a variable length array from
      builtin-pack-objects.c, it is now safe to compile with the threaded delta
      search feature enabled.  Formerly, the MIPSpro 7.4.4m compiler warned that
      variable length arrays should not be used with pthreads.
      Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      817350d3
    • R
      Fix MSVC build on cygwin · f2d50d93
      Ramsay Jones 提交于
      In the MSVC section of the Makefile, BASIC_CFLAGS is set to a
      value which contains the string "-DWIN32-D_CONSOLE". This results
      in a (single) malformed -Define being passed to the compiler.
      At least on my cygwin installation, the msvc compiler seems to
      ignore this parameter, without issuing an error or warning, and
      results in the WIN32 and _CONSOLE macros being undefined. This
      breaks the build.
      
      In order to fix the build, we simply insert a space between the
      two -Define parameters, "-DWIN32" and "-D_CONSOLE", as originally
      intended.
      Signed-off-by: NRamsay Jones <ramsay@ramsay1.demon.co.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      f2d50d93
  4. 08 10月, 2009 1 次提交
  5. 19 9月, 2009 2 次提交
  6. 12 9月, 2009 2 次提交
  7. 11 9月, 2009 1 次提交
    • B
      Makefile: Add NEEDS_CRYPTO_WITH_SSL · 0460dba4
      Brian Gernhardt 提交于
      The Makefile comment for NEEDS_SSL_WITH_CRYPTO says to define it "if
      you need -lcrypto with -lssl (Darwin)."  However, what it actually
      does is add -lssl when you use -lcrypto and not the other way around.
      However, libcrypto contains a majority of the ERR_* functions from
      OpenSSL (at least on OS X) so we need it both ways.
      
      So, add NEEDS_CRYPTO_WITH_SSL which adds -lcrypto to the OpenSSL link
      flags and clarify the difference between it and NEEDS_SSL_WITH_CRYPTO.
      Signed-off-by: NBrian Gernhardt <brian@gernhardtsoftware.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      0460dba4
  8. 04 9月, 2009 1 次提交
  9. 30 8月, 2009 1 次提交
  10. 28 8月, 2009 1 次提交
    • B
      Makefile: remove pointless conditional assignment in SunOS section · b42c9af2
      Brandon Casey 提交于
      It is true that NEEDS_RESOLV is needed on SunOS if NO_IPV6 is set since
      hstrerror() resides in libresolv, but performing this test at its current
      location is not very useful.  It will only have any effect if the user
      modifies the make variables from the make command line, and will have no
      effect if a config.mak file is used.  A better location for this
      conditional would have been further down in the Makefile after the
      config.mak and config.mak.autogen had been parsed.  Rather than adding
      clutter to the Makefile for a conditional that will likely never be
      triggered, just remove it, and any user on SunOS that manually sets NO_IPV6
      can also set NEEDS_RESOLV.
      Signed-off-by: NBrandon Casey <casey@nrlssc.navy.mil>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b42c9af2
  11. 19 8月, 2009 1 次提交
  12. 08 8月, 2009 3 次提交
  13. 07 8月, 2009 1 次提交
  14. 06 8月, 2009 4 次提交
  15. 25 7月, 2009 1 次提交
    • J
      SunOS grep does not understand -C<n> nor -e · 01ae841c
      Junio C Hamano 提交于
      The first "grep -C1" test in t7002 does not pass on my SunOS-5.11-i86pc,
      and that is not because our way to spawn external grep is broken, but
      because the native grep does not understand -C<n>.
      
      It turns out that Peff was also using this option himself because our
      Makefile doesn't do that automatically.  Brandon Casey uses SUNWspro
      compiler without having to set this, and it turns out that the compiler
      does not define preprocessor macro __unix__ which made him always use the
      built-in grep, never an external one.
      
      Let's be more explicit and say that we do not use external grep on Suns.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      01ae841c
  16. 11 7月, 2009 4 次提交
  17. 09 7月, 2009 1 次提交
    • J
      Makefile: install 'git' in execdir · 4ecbc178
      Jeff King 提交于
      When a git command executes a subcommand, it uses the "git
      foo" form, which relies on finding "git" in the PATH.
      Normally this should not be a problem, since the same "git"
      that was used to invoke git in the first place will be
      found.  And if somebody invokes a "git" outside of the PATH
      (e.g., by giving its absolute path), this case is already
      covered: we put that absolute path onto the front of PATH.
      
      However, if one is using "sudo", then sudo will execute the
      "git" from the PATH, but pass along a restricted PATH that
      may not contain the original "git" directory. In this case,
      executing a subcommand will fail.
      
      To solve this, we put the "git" wrapper itself into the
      execdir; this directory is prepended to the PATH when git
      starts, so the wrapper will always be found.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      4ecbc178
  18. 01 7月, 2009 1 次提交
  19. 21 6月, 2009 1 次提交
  20. 19 6月, 2009 2 次提交
  21. 12 6月, 2009 1 次提交
  22. 10 6月, 2009 1 次提交
    • J
      Makefile: insert SANE_TOOL_PATH to PATH before /bin or /usr/bin · 61dbb3c4
      Junio C Hamano 提交于
      In an earlier patch, we introduced SANE_TOOL_PATH that is prepended to
      user's PATH.  This had an unintended consequence of overriding user's
      private binary directory that typically comes earlier in the PATH to holds
      even saner commands than whatever comes with the system.
      
      For example, a user may have ~/bin that is early in the path and contains
      a shell script "vi" that launches system's /bin/vi with specific options.
      Prepending SANE_TOOL_PATH to the PATH that happens to have "vi" in it
      defeats such customization.
      
      This fixes the issue by inserting SANE_TOOL_PATH just before /bin or
      /usr/bin appears on the PATH.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      61dbb3c4
  23. 09 6月, 2009 1 次提交
  24. 07 6月, 2009 4 次提交