1. 28 6月, 2016 1 次提交
    • J
      Merge branch 'ew/daemon-socket-keepalive' into maint · 0a20325a
      Junio C Hamano 提交于
      When "git daemon" is run without --[init-]timeout specified, a
      connection from a client that silently goes offline can hang around
      for a long time, wasting resources.  The socket-level KEEPALIVE has
      been enabled to allow the OS to notice such failed connections.
      
      * ew/daemon-socket-keepalive:
        daemon: enable SO_KEEPALIVE for all sockets
      0a20325a
  2. 14 6月, 2016 1 次提交
  3. 13 6月, 2016 1 次提交
    • J
      Merge tag 'l10n-2.9.0-rc0' of git://github.com/git-l10n/git-po · 25c7aeb1
      Junio C Hamano 提交于
      l10n-2.9.0-rc0
      
      * tag 'l10n-2.9.0-rc0' of git://github.com/git-l10n/git-po:
        l10n: ko.po: Update Korean translation
        l10n: ru.po: update Russian translation
        l10n: de.po: translate 104 new messages
        l10n: zh_CN: review for git v2.9.0 l10n round 1
        l10n: zh_CN: for git v2.9.0 l10n round 1
        l10n: pt_PT: update Portuguese translation
        l10n: pt_PT: update according to git-gui glossary
        l10n: pt_PT: merge git.pot file
        l10n: Updated Bulgarian translation of git (2597t,0f,0u)
        l10n: sv.po: Update Swedish translation (2597t0f0u)
        l10n: fr.po v2.9.0rnd1
        l10n: Updated Vietnamese translation (2597t)
        l10n: git.pot: v2.9.0 round 1 (104 new, 37 removed)
        l10n: fr.po Fixed grammar mistake
      25c7aeb1
  4. 12 6月, 2016 1 次提交
  5. 11 6月, 2016 8 次提交
  6. 09 6月, 2016 1 次提交
  7. 07 6月, 2016 9 次提交
  8. 06 6月, 2016 1 次提交
  9. 04 6月, 2016 10 次提交
  10. 02 6月, 2016 5 次提交
    • S
      1df036ea
    • J
      t2300: run git-sh-setup in an environment that better mimics the real life · fe17fc00
      Junio C Hamano 提交于
      When we run scripted Porcelains, "git" potty has set up the $PATH by
      prepending $GIT_EXEC_PATH, the path given by "git --exec-path=$there
      $cmd", etc. already.  Because of this, scripted Porcelains can
      dot-source shell script library like git-sh-setup with simple dot
      without specifying any path.
      
      t2300 however dot-sources git-sh-setup without adjusting $PATH like
      the real "git" potty does.  This has not been a problem so far, but
      once git-sh-setup wants to rely on the $PATH adjustment, just like
      any scripted Porcelains already do, it would become one.  It cannot
      for example dot-source another shell library without specifying the
      full path to it by prefixing $(git --exec-path).
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      fe17fc00
    • J
      t5500 & t7403: lose bash-ism "local" · e256eec7
      Junio C Hamano 提交于
      In t5500::check_prot_host_port_path(), diagport is not a variable
      used elsewhere and the function is not recursively called so this
      can simply lose the "local", which may not be supported by shell
      (besides, the function liberally clobbers other variables without
      making them "local").
      
      t7403::reset_submodule_urls() overrides the "root" variable used
      in the test framework for no good reason; its use is not about
      temporarily relocating where the test repositories are created.
      This assignment can be made not to clobber the variable by moving
      them into the subshells it already uses.  Its value is always
      $TRASH_DIRECTORY, so we could use it instead there, and this
      function that is called only once and its two subshells may not be
      necessary (instead, the caller can use "git -C $there config" and
      set a value that is derived from $TRASH_DIRECTORY), but this is a
      minimum fix that is needed to lose "local".
      Helped-by: NJohn Keeping <john@keeping.me.uk>
      Helped-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      e256eec7
    • S
      submodule: remove bashism from shell script · 44431df0
      Stefan Beller 提交于
      Junio pointed out `relative_path` was using bashisms via the
      local variables. As the longer term goal is to rewrite most of the
      submodule code in C, do it now.
      Signed-off-by: NStefan Beller <sbeller@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      44431df0
    • S
      submodule--helper: offer a consistent API · b0f4b408
      Stefan Beller 提交于
      In 48308681 (2016-02-29, git submodule update: have a dedicated helper
      for cloning), the helper communicated errors back only via exit code,
      and dance with printing '#unmatched' in case of error was left to
      git-submodule.sh as it uses the output of the helper and pipes it into
      shell commands. This change makes the helper consistent by never
      printing '#unmatched' in the helper but always handling these piping
      issues in the actual shell script.
      Signed-off-by: NStefan Beller <sbeller@google.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      b0f4b408
  11. 01 6月, 2016 2 次提交
    • M
      Makefile: add $(DEVELOPER_CFLAGS) variable · 51dd3e81
      Matthieu Moy 提交于
      This does not change the behavior, but allows the user to tweak
      DEVELOPER_CFLAGS on the command-line or in a config.mak* file if
      needed.
      
      This also makes the code somewhat cleaner as it follows the pattern
      
      <initialisation of variables>
      <include statements>
      <actual build logic>
      
      by specifying which flags to activate in the first part, and actually
      activating them in the last one.
      Signed-off-by: NMatthieu Moy <Matthieu.Moy@imag.fr>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      51dd3e81
    • J
      test-lib: add in-shell "env" replacement · d2554c72
      Jeff King 提交于
      The one-shot environment variable syntax:
      
        FOO=BAR some-program
      
      is unportable when some-program is actually a shell
      function, like test_must_fail (on some shells FOO remains
      set after the function returns, and on others it does not).
      
      We sometimes get around this by using env, like:
      
        test_must_fail env FOO=BAR some-program
      
      But that only works because test_must_fail's arguments are
      themselves a command which can be run. You can't run:
      
        env FOO=BAR test_must_fail some-program
      
      because env does not know about our shell functions. So
      there is no equivalent for test_commit, for example, and one
      must resort to:
      
        (
          FOO=BAR
          export FOO
          test_commit
        )
      
      which is a bit verbose.  Let's add a version of "env" that
      works _inside_ the shell, by creating a subshell, exporting
      variables from its argument list, and running the command.
      
      Its use is demonstrated on a currently-unportable case in
      t4014.
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d2554c72