1. 24 3月, 2016 1 次提交
    • J
      git_config_push_parameter: handle empty GIT_CONFIG_PARAMETERS · d1f88498
      Jeff King 提交于
      The "git -c var=value" option stuffs the config value into
      $GIT_CONFIG_PARAMETERS, so that sub-processes can see it.
      When the config is later read via git_config() or similar,
      we parse it back out of that variable.  The parsing end is a
      little bit picky; it assumes that each entry was generated
      with sq_quote_buf(), and that there is no extraneous
      whitespace.
      
      On the generating end, we are careful to append to an
      existing $GIT_CONFIG_PARAMETERS variable if it exists.
      However, our test for "should we add a space separator" is
      too liberal: it will add one even if the environment
      variable exists but is empty. As a result, you might end up
      with:
      
         GIT_CONFIG_PARAMETERS=" 'core.foo=bar'"
      
      which the parser will choke on.
      
      This was hard to trigger in older versions of git, since we
      only set the variable when we had something to put into it
      (though you could certainly trigger it manually). But since
      14111fc4 (git: submodule honor -c credential.* from command
      line, 2016-02-29), the submodule code will unconditionally
      put the $GIT_CONFIG_PARAMETERS variable into the environment
      of any operation in the submodule, whether it is empty or
      not. So any of those operations which themselves use "git
      -c" will generate the unparseable value and fail.
      
      We can easily fix it by catching this case on the generating
      side. While we're adding a test, let's also check that
      multiple layers of "git -c" work, which was previously not
      tested at all.
      Reported-by: NShin Fan <shinfan@google.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Reviewed-by: NJonathan Nieder <jrnieder@gmail.com>
      Tested-by: NJonathan Nieder <jrnieder@gmail.com>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      d1f88498
  2. 02 3月, 2016 6 次提交
  3. 26 2月, 2016 1 次提交
    • M
      t/lib-httpd: load mod_unixd · 59223223
      Michael J Gruber 提交于
      In contrast to apache 2.2, apache 2.4 does not load mod_unixd in its
      default configuration (because there are choices). Thus, with the
      current config, apache 2.4.10 will not be started and the httpd tests
      will not run on distros with default apache config (RedHat type).
      
      Enable mod_unixd to make the httpd tests run. This does not affect
      distros negatively which have that config already in their default
      (Debian type). httpd tests will run on these before and after this patch.
      Signed-off-by: NMichael J Gruber <git@drmicha.warpmail.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      59223223
  4. 25 2月, 2016 11 次提交
    • J
      Eighth batch for 2.8 · 56f37fda
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      56f37fda
    • J
      Merge branch 'jc/am-i-v-fix' · c3b1e8d8
      Junio C Hamano 提交于
      The "v(iew)" subcommand of the interactive "git am -i" command was
      broken in 2.6.0 timeframe when the command was rewritten in C.
      
      * jc/am-i-v-fix:
        am -i: fix "v"iew
        pager: factor out a helper to prepare a child process to run the pager
        pager: lose a separate argv[]
      c3b1e8d8
    • J
      Merge branch 'nd/worktree-add-B' · 595bfefa
      Junio C Hamano 提交于
      "git worktree add -B <branchname>" did not work.
      
      * nd/worktree-add-B:
        worktree add -B: do the checkout test before update branch
        worktree: fix "add -B"
      595bfefa
    • J
      Merge branch 'nd/exclusion-regression-fix' · 5e57f9c3
      Junio C Hamano 提交于
      Another try to add support to the ignore mechanism that lets you
      say "this is excluded" and then later say "oh, no, this part (that
      is a subset of the previous part) is not excluded".
      
      * nd/exclusion-regression-fix:
        dir.c: don't exclude whole dir prematurely
        dir.c: support marking some patterns already matched
        dir.c: support tracing exclude
        dir.c: fix match_pathname()
      5e57f9c3
    • J
      Merge branch 'ce/https-public-key-pinning' · e79112d2
      Junio C Hamano 提交于
      You can now set http.[<url>.]pinnedpubkey to specify the pinned
      public key when building with recent enough versions of libcURL.
      
      * ce/https-public-key-pinning:
        http: implement public key pinning
      e79112d2
    • J
      Merge branch 'bc/http-empty-auth' · 65ba75ba
      Junio C Hamano 提交于
      Some authentication methods do not need username or password, but
      libcurl needs some hint that it needs to perform authentication.
      Supplying an empty username and password string is a valid way to
      do so, but you can set the http.[<url>.]emptyAuth configuration
      variable to achieve the same, if you find it cleaner.
      
      * bc/http-empty-auth:
        http: add option to try authentication without username
      65ba75ba
    • J
      Merge branch 'sp/remote-curl-ssl-strerror' · 97c49af6
      Junio C Hamano 提交于
      Help those who debug http(s) part of the system.
      
      * sp/remote-curl-ssl-strerror:
        remote-curl: include curl_errorstr on SSL setup failures
      97c49af6
    • J
      Merge branch 'jk/lose-name-path' · 9831e92b
      Junio C Hamano 提交于
      The "name_path" API was an attempt to reduce the need to construct
      the full path out of a series of path components while walking a
      tree hierarchy, but over time made less efficient because the path
      needs to be flattened, e.g. to be compared with another path that
      is already flat.  The API has been removed and its users have been
      rewritten to simplify the overall code complexity.
      
      * jk/lose-name-path:
        list-objects: pass full pathname to callbacks
        list-objects: drop name_path entirely
        list-objects: convert name_path to a strbuf
        show_object_with_name: simplify by using path_name()
        http-push: stop using name_path
      9831e92b
    • J
      Merge branch 'ew/force-ipv4' · e84d5e9f
      Junio C Hamano 提交于
      "git fetch" and friends that make network connections can now be
      told to only use ipv4 (or ipv6).
      
      * ew/force-ipv4:
        connect & http: support -4 and -6 switches for remote operations
      e84d5e9f
    • J
      Merge branch 'nd/git-common-dir-fix' · 8020803f
      Junio C Hamano 提交于
      "git rev-parse --git-common-dir" used in the worktree feature
      misbehaved when run from a subdirectory.
      
      * nd/git-common-dir-fix:
        rev-parse: take prefix into account in --git-common-dir
      8020803f
    • J
      Merge branch 'nd/dwim-wildcards-as-pathspecs' · e6a6a768
      Junio C Hamano 提交于
      "git show 'HEAD:Foo[BAR]Baz'" did not interpret the argument as a
      rev, i.e. the object named by the the pathname with wildcard
      characters in a tree object.
      
      * nd/dwim-wildcards-as-pathspecs:
        get_sha1: don't die() on bogus search strings
        check_filename: tighten dwim-wildcard ambiguity
        checkout: reorder check_filename conditional
      e6a6a768
  5. 24 2月, 2016 1 次提交
  6. 23 2月, 2016 13 次提交
  7. 22 2月, 2016 3 次提交
  8. 18 2月, 2016 4 次提交