1. 22 1月, 2016 1 次提交
  2. 05 1月, 2016 6 次提交
    • J
      Git 2.6.5 · 833e4825
      Junio C Hamano 提交于
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      833e4825
    • J
      Merge branch 'jk/pending-keep-tag-name' into maint · e3073cf8
      Junio C Hamano 提交于
      History traversal with "git log --source" that starts with an
      annotated tag failed to report the tag as "source", due to an
      old regression in the command line parser back in v2.2 days.
      
      * jk/pending-keep-tag-name:
        revision.c: propagate tag names from pending array
      e3073cf8
    • J
      Merge branch 'jk/symbolic-ref-maint' into maint · e0025275
      Junio C Hamano 提交于
      "git symbolic-ref" forgot to report a failure with its exit status.
      
      * jk/symbolic-ref-maint:
        t1401: test reflog creation for git-symbolic-ref
        symbolic-ref: propagate error code from create_symref()
      e0025275
    • J
      Merge branch 'jk/ident-loosen-getpwuid' into maint · e54d0f5a
      Junio C Hamano 提交于
      When getpwuid() on the system returned NULL (e.g. the user is not
      in the /etc/passwd file or other uid-to-name mappings), the
      codepath to find who the user is to record it in the reflog barfed
      and died.  Loosen the check in this codepath, which already accepts
      questionable ident string (e.g. host part of the e-mail address is
      obviously bogus), and in general when we operate fmt_ident() function
      in non-strict mode.
      
      * jk/ident-loosen-getpwuid:
        ident: loosen getpwuid error in non-strict mode
        ident: keep a flag for bogus default_email
        ident: make xgetpwuid_self() a static local helper
      e54d0f5a
    • J
      Merge branch 'jk/send-email-ssl-errors' into maint · 06b5c930
      Junio C Hamano 提交于
      Improve error reporting when SMTP TLS fails.
      
      * jk/send-email-ssl-errors:
        send-email: enable SSL level 1 debug output
      06b5c930
    • J
      Merge branch 'sg/completion-no-column' into maint · 34872f0b
      Junio C Hamano 提交于
      The completion script (in contrib/) used to list "git column"
      (which is not an end-user facing command) as one of the choices
      
      * sg/completion-no-column:
        completion: remove 'git column' from porcelain commands
      34872f0b
  3. 22 12月, 2015 2 次提交
  4. 18 12月, 2015 1 次提交
    • J
      revision.c: propagate tag names from pending array · 728350b7
      Jeff King 提交于
      When we unwrap a tag to find its commit for a traversal, we
      do not propagate the "name" field of the tag in the pending
      array (i.e., the ref name the user gave us in the first
      place) to the commit (instead, we use an empty string). This
      means that "git log --source" will never show the tag-name
      for commits we reach through it.
      
      This was broken in 20739490 (traverse_commit_list: support
      pending blobs/trees with paths, 2014-10-15). That commit
      tried to be careful and avoid propagating the path
      information for a tag (which would be nonsensical) to trees
      and blobs. But it should not have cut off the "name" field,
      which should carry forward to children.
      
      Note that this does mean that the "name" field will carry
      forward to blobs and trees, too. Whereas prior to 20739490,
      we always gave them an empty string. This is the right thing
      to do, but in practice no callers probably use it (since now
      we have an explicit separate "path" field, which was the
      point of 20739490).
      
      We add tests here not only for the broken case, but also a
      basic sanity test of "log --source" in general, which did
      not have any coverage in the test suite.
      Reported-by: NRaymundo <gypark@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      728350b7
  5. 17 12月, 2015 2 次提交
  6. 16 12月, 2015 5 次提交
  7. 15 12月, 2015 2 次提交
    • J
      ident: fix undefined variable when NO_IPV6 is set · 58d29ece
      Jeff King 提交于
      Commit 00bce77f (ident.c: add support for IPv6, 2015-11-27)
      moved the "gethostbyname" call out of "add_domainname" and
      into the helper function "canonical_name". But when moving
      the code, it forgot that the "buf" variable is passed as
      "host" in the helper.
      Reported-by: Njohan defries <johandefries@gmail.com>
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      58d29ece
    • J
      ident: loosen getpwuid error in non-strict mode · 92bcbb9b
      Jeff King 提交于
      If the user has not specified an identity and we have to
      turn to getpwuid() to find the username or gecos field, we
      die immediately when getpwuid fails (e.g., because the user
      does not exist). This is OK for making a commit, where we
      have set IDENT_STRICT and would want to bail on bogus input.
      
      But for something like a reflog, where the ident is "best
      effort", it can be pain. For instance, even running "git
      clone" with a UID that is not in /etc/passwd will result in
      git barfing, just because we can't find an ident to put in
      the reflog.
      
      Instead of dying in xgetpwuid_self, we can instead return a
      fallback value, and set a "bogus" flag. For the username in
      an email, we already have a "default_email_is_bogus" flag.
      For the name field, we introduce (and check) a matching
      "default_name_is_bogus" flag. As a bonus, this means you now
      get the usual "tell me who you are" advice instead of just a
      "no such user" error.
      
      No tests, as this is dependent on configuration outside of
      git's control. However, I did confirm that it behaves
      sensibly when I delete myself from the local /etc/passwd
      (reflogs get written, and commits complain).
      Signed-off-by: NJeff King <peff@peff.net>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      92bcbb9b
  8. 12 12月, 2015 12 次提交
    • S
      completion: remove 'git column' from porcelain commands · 160fcdb0
      SZEDER Gábor 提交于
      'git column' is an internal helper, so it should not be offered on
      'git <TAB>' along with porcelain commands.
      Signed-off-by: NSZEDER Gábor <szeder@ira.uka.de>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      160fcdb0
    • J
      Prepare for 2.6.5 · 49e863b0
      Junio C Hamano 提交于
      This back-merges hopefully the last batch of trivially correct fixes
      to the 2.6.x maintenance track from the master branch.
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      49e863b0
    • J
      Merge branch 'sn/null-pointer-arith-in-mark-tree-uninteresting' into maint · 58e3dd21
      Junio C Hamano 提交于
      mark_tree_uninteresting() has code to handle the case where it gets
      passed a NULL pointer in its 'tree' parameter, but the function had
      'object = &tree->object' assignment before checking if tree is
      NULL.  This gives a compiler an excuse to declare that tree will
      never be NULL and apply a wrong optimization.  Avoid it.
      
      * sn/null-pointer-arith-in-mark-tree-uninteresting:
        revision.c: fix possible null pointer arithmetic
      58e3dd21
    • J
      Merge branch 'sg/lock-file-commit-error' into maint · abca668a
      Junio C Hamano 提交于
      Cosmetic improvement to lock-file error messages.
      
      * sg/lock-file-commit-error:
        Make error message after failing commit_lock_file() less confusing
      abca668a
    • J
      Merge branch 'cb/t3404-shellquote' into maint · 76058817
      Junio C Hamano 提交于
      * cb/t3404-shellquote:
        t3404: fix quoting of redirect for some versions of bash
      76058817
    • J
      Merge branch 'sb/doc-submodule-sync-recursive' into maint · 17e5bcab
      Junio C Hamano 提交于
      * sb/doc-submodule-sync-recursive:
        document submodule sync --recursive
      17e5bcab
    • J
      Merge branch 'nd/doc-check-ref-format-typo' into maint · 63b3db71
      Junio C Hamano 提交于
      * nd/doc-check-ref-format-typo:
        git-check-ref-format.txt: typo, s/avoids/avoid/
      63b3db71
    • J
      Merge branch 'rs/show-branch-argv-array' into maint · 288fe0cf
      Junio C Hamano 提交于
      Code simplification.
      
      * rs/show-branch-argv-array:
        show-branch: use argv_array for default arguments
      288fe0cf
    • J
      Merge branch 'rs/pop-commit' into maint · 0af22d6f
      Junio C Hamano 提交于
      Code simplification.
      
      * rs/pop-commit:
        use pop_commit() for consuming the first entry of a struct commit_list
      0af22d6f
    • J
      Merge branch 'as/subtree-with-spaces' into maint · 8c0a5466
      Junio C Hamano 提交于
      Update "git subtree" (in contrib/) so that it can take whitespaces
      in the pathnames, not only in the in-tree pathname but the name of
      the directory that the repository is in.
      
      * as/subtree-with-spaces:
        contrib/subtree: respect spaces in a repository path
        t7900-subtree: test the "space in a subdirectory name" case
      8c0a5466
    • J
      Merge branch 'jk/test-lint-forbid-when-finished-in-subshell' into maint · 4cb5488f
      Junio C Hamano 提交于
      Because "test_when_finished" in our test framework queues the
      clean-up tasks to be done in a shell variable, it should not be
      used inside a subshell.  Add a mechanism to allow 'bash' to catch
      such uses, and fix the ones that were found.
      
      * jk/test-lint-forbid-when-finished-in-subshell:
        test-lib-functions: detect test_when_finished in subshell
        t7800: don't use test_config in a subshell
        test-lib-functions: support "test_config -C <dir> ..."
        t5801: don't use test_when_finished in a subshell
        t7610: don't use test_config in a subshell
      4cb5488f
    • J
      send-email: enable SSL level 1 debug output · 9d605249
      John Keeping 提交于
      If a server's certificate isn't accepted by send-email, the output is:
      
      	Unable to initialize SMTP properly. Check config and use --smtp-debug.
      
      but adding --smtp-debug=1 just produces the same output since we don't
      get as far as talking SMTP.
      
      Turning on SSL debug at level 1 gives:
      
      	DEBUG: .../IO/Socket/SSL.pm:1796: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
      	DEBUG: .../IO/Socket/SSL.pm:673: fatal SSL error: SSL connect attempt failed error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed
      	DEBUG: .../IO/Socket/SSL.pm:1780: IO::Socket::IP configuration failed
      
      IO::Socket::SSL defines level 1 debug as "print out errors from
      IO::Socket::SSL and ciphers from Net::SSLeay".  In fact, it aliases
      Net::SSLeay::trace which is defined to guarantee silence at level 0 and
      only emit error messages at level 1, so let's enable it by default.
      
      The modification of warnings is needed to avoid a warning about:
      
      	Name "IO::Socket::SSL::DEBUG" used only once: possible typo
      Signed-off-by: NJohn Keeping <john@keeping.me.uk>
      Signed-off-by: NJunio C Hamano <gitster@pobox.com>
      9d605249
  9. 11 12月, 2015 4 次提交
  10. 09 12月, 2015 5 次提交