{"thread":{"id":"18264","subject":"What's cooking in git.git (Mar 2009, #03; Wed, 11)","startedAt":"2009-03-11T09:26:44Z","lastAt":"2009-03-12T20:43:52Z","messageCount":5,"participants":["Junio C Hamano","Felipe Contreras","Jay Soffian","René Scharfe"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"107659","messageId":"7vvdqg5s17.fsf@gitster.siamese.dyndns.org","threadId":"18264","inReplyTo":null,"subject":"What's cooking in git.git (Mar 2009, #03; Wed, 11)","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-03-11T09:26:44Z","receivedAt":"2009-03-11T09:26:44Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Here are the topics that have been cooking.  Commits prefixed with '-' are\nonly in 'pu' while commits prefixed with '+' are in 'next'.  The ones\nmarked with '.' do not appear in any of the branches, but I am still\nholding onto them.\n\nThe topics list the commits in reverse chronological order.  The topics\nmeant to be merged to the maintenance series have \"maint-\" in their names.\n\nTonight's 'pu' does not pass its self-test and it is expected; I won't be\nfixing it and I'm going to bed now.\n\n----------------------------------------------------------------\n[New Topics]\n\n* db/maint-missing-origin (Wed Mar 11 01:47:20 2009 -0400) 1 commit\n - Give error when no remote is configured\n\n* js/sideband-stderr (Tue Mar 10 22:58:09 2009 +0100) 2 commits\n - winansi: support ESC [ K (erase in line)\n - recv_sideband: Bands #2 and #3 always go to stderr\n\n* js/rsync-local (Mon Mar 9 19:44:55 2009 +0100) 1 commit\n - rsync transport: allow local paths, and fix tests\n\n* rs/color-grep (Sun Mar 8 18:22:44 2009 -0700) 6 commits\n + grep: cast printf %.*s \"precision\" argument explicitly to int\n + grep: add support for coloring with external greps\n + grep: color patterns in output\n + grep: add pmatch and eflags arguments to match_one_pattern()\n + grep: remove grep_opt argument from match_expr_eval()\n + grep: micro-optimize hit collection for AND nodes\n\n* db/refspec-wildcard-in-the-middle (Sat Mar 7 01:11:39 2009 -0500) 5 commits\n + Support '*' in the middle of a refspec\n + Keep '*' in pattern refspecs\n + Use the matching function to generate the match results\n + Use a single function to match names against patterns\n + Make clone parse the default refspec with the normal code\n\n* db/push-cleanup (Sun Mar 8 21:06:07 2009 -0400) 2 commits\n - Move push matching and reporting logic into transport.c\n - Use a common function to get the pretty name of refs\n\n* xx/db-refspec-vs-js-remote (Sun Mar 8 00:12:33 2009 -0800) 1 commit\n + Adjust js/remote-improvements and db/refspec-wildcard-in-the-\n   middle\n\n* fg/push-default (Mon Mar 9 23:35:51 2009 +0100) 7 commits\n - git push: Remove warning for \"git push\" default change\n - git push: Change default for \"git push\" to nothing.\n - git push: Document that \"nothing\" is the future push default\n - git push: Display warning on unconfigured default push\n - git push: New options --matching and --current\n - New config option push.default\n - remote: Make \"-\" an alias for the current remote\n\nWith the topmost three patches, tonight's 'pu' does not pass the self test\nas expected.  I am not sure there is a wide support for changing the\ndefault, either.\n\n* kg/http-auth (Mon Mar 9 23:34:25 2009 -0700) 3 commits\n - http authentication via prompts\n - http_init(): Fix config file parsing\n - http.c: style cleanups\n\nThis only deals with the fetch side.\n\n* jc/log-tz (Tue Mar 3 00:45:37 2009 -0800) 1 commit\n - Allow --date=local --date=other-format to work as expected\n\nThe one I posted had a few corner-case bugs that was caught with the test\nsuite; this one has them fixed.\n\n----------------------------------------------------------------\n[Graduated to \"master\"]\n\n* jk/sane-relative-time (Tue Feb 24 00:42:16 2009 -0500) 1 commit\n + never fallback relative times to absolute\n\n* js/send-email (Mon Mar 2 23:52:18 2009 -0500) 5 commits\n + send-email: add --confirm option and configuration setting\n + send-email: don't create temporary compose file until it is needed\n + send-email: --suppress-cc improvements\n + send-email: handle multiple Cc addresses when reading mbox message\n + send-email: allow send-email to run outside a repo\n\n* sg/rerere-cleanup (Sat Feb 14 23:21:04 2009 +0100) 1 commit\n + rerere: remove duplicated functions\n\n* jc/add-p-unquote (Mon Feb 16 22:43:43 2009 -0800) 1 commit\n + git-add -i/-p: learn to unwrap C-quoted paths\n\n* jw/imap-preformatted-html (Thu Feb 12 08:58:12 2009 -0600) 1 commit\n + imap.preformattedHTML to tell Thunderbird to send non-flowed text\n\n* jw/format-patch-attach (Thu Feb 12 09:51:55 2009 -0600) 1 commit\n + Enable setting attach as the default in .gitconfig for git-format-\n   patch.\n\n* sr/force-rebase (Fri Feb 13 23:48:01 2009 +0100) 1 commit\n + Teach rebase to rebase even if upstream is up to date\n\n* fg/exclude-bq (Tue Feb 10 15:20:17 2009 +0100) 1 commit\n + Support \"\\\" in non-wildcard exclusion entries\n\n* dm/add-i-edit-abort (Thu Feb 12 00:19:41 2009 -0500) 1 commit\n + add -i: revisit hunk on editor failure\n\n* tp/completion (Sat Feb 21 15:48:43 2009 +0100) 6 commits\n + Fixup: Add bare repository indicator for __git_ps1\n + Add bare repository indicator for __git_ps1\n + completion: More fixes to prevent unbound variable errors\n + completion: Better __git_ps1 support when not in working directory\n + completion: Use consistent if [...] convention, not \"test\"\n + completion: For consistency, change \"git rev-parse\" to __gitdir\n   calls\n\n* js/branch-symref (Wed Feb 18 22:34:44 2009 -0500) 4 commits\n + add basic branch display tests\n + branch: clean up repeated strlen\n + Avoid segfault with 'git branch' when the HEAD is detached\n + builtin-branch: improve output when displaying remote branches\n\n* al/ansi-color (Fri Feb 13 22:53:41 2009 +0100) 2 commits\n + builtin-branch.c: Rename branch category color names\n + Clean up use of ANSI color sequences\n\n* js/valgrind (Thu Feb 5 22:03:00 2009 +0100) 9 commits\n + valgrind: do not require valgrind 3.4.0 or newer\n + test-lib: avoid assuming that templates/ are in the GIT_EXEC_PATH\n + Tests: let --valgrind imply --verbose and --tee\n + Add a script to coalesce the valgrind outputs\n + t/Makefile: provide a 'valgrind' target\n + test-lib.sh: optionally output to test-results/$TEST.out, too\n + Valgrind support: check for more than just programming errors\n + valgrind: ignore ldso and more libz errors\n + Add valgrind support in test scripts\n\n* fc/config-editor (Sat Feb 21 02:48:54 2009 +0200) 3 commits\n + git config: trivial cleanup for editor action\n + git config: codestyle cleanups\n + config: Add new option to open an editor.\n\n* jc/blame (Wed Jun 4 22:58:40 2008 -0700) 2 commits\n + blame: show \"previous\" information in --porcelain/--incremental\n   format\n + git-blame: refactor code to emit \"porcelain format\" output\n\n* ns/pretty-format (Tue Feb 24 15:33:29 2009 +0200) 5 commits\n + bash completion: add --format= and --oneline options for \"git log\"\n + Add tests for git log --pretty, --format and --oneline.\n + Add --oneline that is a synonym to \"--pretty=oneline --abbrev-\n   commit\"\n + Give short-hands to --pretty=tformat:%formatstring\n + Add --format that is a synonym to --pretty\n\n* en/maint-hash-object (Sat Feb 28 12:56:49 2009 -0700) 1 commit\n + Ensure proper setup of git_dir for git-hash-object\n\n----------------------------------------------------------------\n[Will merge to 'master' soon]\n\n* mg/maint-submodule-normalize-path (Tue Mar 3 16:08:21 2009 +0100) 2 commits\n + git submodule: Fix adding of submodules at paths with ./, .. and\n   //\n + git submodule: Add test cases for git submodule add\n\n* rs/memmem (Tue Mar 3 00:19:30 2009 +0100) 2 commits\n + optimize compat/ memmem()\n + diffcore-pickaxe: use memmem()\n\n* tv/rebase-stat (Sun Mar 1 22:28:28 2009 +0100) 2 commits\n + git-pull: Allow --stat and --no-stat to be used with --rebase\n + git-rebase: Add --stat and --no-stat for producing diffstat on\n   rebase\n\n* jk/clone-post-checkout (Tue Mar 3 00:37:51 2009 -0500) 1 commit\n + clone: run post-checkout hook when checking out\n\n* jc/maint-1.6.0-keep-pack (Sat Feb 28 00:37:19 2009 -0800) 6 commits\n + is_kept_pack(): final clean-up\n + Simplify is_kept_pack()\n + Consolidate ignore_packed logic more\n + has_sha1_kept_pack(): take \"struct rev_info\"\n + has_sha1_pack(): refactor \"pretend these packs do not exist\"\n   interface\n + git-repack: resist stray environment variable\n\nThis is in response to Linus's \"Really slow 'git gc'\" ($gmane/110743)\n\n* el/blame-date (Fri Feb 20 14:51:11 2009 -0800) 1 commit\n + Make git blame's date output format configurable, like git log\n\n* tr/gcov (Thu Feb 19 12:13:42 2009 +0100) 8 commits\n + Test git-patch-id\n + Test rev-list --parents/--children\n + Test log --decorate\n + Test fsck a bit harder\n + Test log --graph\n + Test diff --dirstat functionality\n + Test that diff can read from stdin\n + Support coverage testing with GCC/gcov\n\n* tr/format-patch-thread (Thu Feb 19 22:26:33 2009 +0100) 4 commits\n + format-patch: support deep threading\n + format-patch: thread as reply to cover letter even with in-reply-\n   to\n + format-patch: track several references\n + format-patch: threading test reactivation\n\n----------------------------------------------------------------\n[Stalled and may need help and prodding to go forward]\n\n* lh/submodule-tree-traversal (Sun Jan 25 01:52:06 2009 +0100) 1 commit\n - archive.c: add support for --submodules[=(all|checkedout)]\n\nDiscussion stalled on the submodule selection criteria.\n\n* jc/merge-convert (Mon Jan 26 16:45:01 2009 -0800) 1 commit\n - git-merge-file: allow converting the results for the work tree\n\nThis is a feature waiting for a user.\n\nWe did not give scripted Porcelains a way to say \"this temporary file I am\nusing for merging is for this path, so use the core.autocrlf and attributes\nrules for that final path\".  Instead, merge-file simply wrote out the\ndata in the canonical repository representation.\n\nrerere has the same issue, but it is a lot worse.  It reads the three\nfiles (preimage, postimage and thisimage) from the work tree in the work\ntree representation, merges them without converting them to the canonical\nrepresentation first but inserts the conflict markers with the canonical\nrepresentation and writes the resulting mess out.  It needs to be fixed to\nread with convert_to_git(), merge them while they are still in the\ncanonical representation and possibly add conflict markers, and then write\nthe results out after convert_to_working_tree().  It also needs to write\nin binary mode as well.\n\n* db/foreign-scm (Sun Jan 11 15:12:10 2009 -0500) 3 commits\n - Support fetching from foreign VCSes\n - Add specification of git-vcs helpers\n - Add \"vcs\" config option in remotes\n\nThe \"spec\" did not seem quite well cooked yet, but in the longer term I\nthink something like this to allow interoperating with other SCMs as if\nthe other end is a native git repository is a very worthy goal.\n\n* cc/replace (Mon Feb 2 06:13:06 2009 +0100) 11 commits\n - builtin-replace: use \"usage_msg_opt\" to give better error messages\n - parse-options: add new function \"usage_msg_opt\"\n - builtin-replace: teach \"git replace\" to actually replace\n - Add new \"git replace\" command\n - environment: add global variable to disable replacement\n - mktag: call \"check_sha1_signature\" with the replacement sha1\n - replace_object: add a test case\n - object: call \"check_sha1_signature\" with the replacement sha1\n - sha1_file: add a \"read_sha1_file_repl\" function\n - replace_object: add mechanism to replace objects found in\n   \"refs/replace/\"\n - refs: add a \"for_each_replace_ref\" function\n\nI think the code is much cleaner than the first round, but I am not\nconvinced it is doing the right thing in the connectivity traverser.\nIndependent review sorely needed.\n\n----------------------------------------------------------------\n[Discarded]\n\n* sc/gitweb-category (Fri Dec 12 00:45:12 2008 +0100) 3 commits\n . gitweb: Optional grouping of projects by category\n . gitweb: Split git_project_list_body in two functions\n . gitweb: Modularized git_get_project_description to be more generic\n\nDesign discussion between Jakub and Sebastien seems to have stalled, but\nJakub seems to be taking this over.\n\n* jc/push-to-create (Mon Mar 2 22:36:16 2009 -0800) 1 commit\n . Push to create\n\nThis was a failed weatherbaloon patch to allow creation of a new\nrepository from the remote side.\n\n----------------------------------------------------------------\n[Actively cooking]\n\n* hv/cvsimport-tests (Mon Mar 2 18:59:36 2009 +0100) 1 commit\n - cvsimport: add test illustrating a bug in cvsps\n\nYet more tests without fixing anything...\n\n* jc/clone-branch-rebase (Tue Mar 10 01:20:42 2009 -0700) 2 commits\n + Improve \"git branch --tracking\" output\n + Make git-clone respect branch.autosetuprebase\n\nThis is a rewrite of a patch from Pat Notz.\n\n* kb/tracking-count-no-merges (Wed Mar 4 18:47:39 2009 +0100) 1 commit\n + stat_tracking_info(): only count real commits\n\nThis gives the merge commits zero weight when talking about how many\ncommits you have ahead (or behind) of the branch you are tracking.  Even\nthough I agree that they should carry much less weight than the \"real\"\ncommits, because your repeated merge from the other branch does not really\nadd any real value to the end result, giving them absolute zero weight\nsomehow feels wrong. At least it shows that your have been _active_ on the\nbranch.  But I do not feel very strongly about it.\n\n* js/rebase-i-opt (Tue Mar 3 10:55:31 2009 +0100) 1 commit\n + rebase -i: avoid 'git reset' when possible\n\n* kb/checkout-optim (Sun Mar 8 17:22:51 2009 -0400) 18 commits\n + Makefile: Set compiler switch for USE_NSEC\n + Create USE_ST_TIMESPEC and turn it on for Darwin\n + Not all systems use st_[cm]tim field for ns resolution file\n   timestamp\n + Record ns-timestamps if possible, but do not use it without\n   USE_NSEC\n + write_index(): update index_state->timestamp after flushing to\n   disk\n + verify_uptodate(): add ce_uptodate(ce) test\n + make USE_NSEC work as expected\n + fix compile error when USE_NSEC is defined\n + check_updates(): effective removal of cache entries marked\n   CE_REMOVE\n + lstat_cache(): print a warning if doing ping-pong between cache\n   types\n + show_patch_diff(): remove a call to fstat()\n + write_entry(): use fstat() instead of lstat() when file is open\n + write_entry(): cleanup of some duplicated code\n + create_directories(): remove some memcpy() and strchr() calls\n + unlink_entry(): introduce schedule_dir_for_removal()\n + lstat_cache(): swap func(length, string) into func(string, length)\n + lstat_cache(): generalise longest_match_lstat_cache()\n + lstat_cache(): small cleanup and optimisation\n\n* mv/parseopt-ls-files (Sat Mar 7 20:27:22 2009 -0500) 4 commits\n + ls-files: fix broken --no-empty-directory\n + t3000: use test_cmp instead of diff\n + parse-opt: migrate builtin-ls-files.\n + Turn the flags in struct dir_struct into a single variable\n\nThe tip one was a subject for further discussion, but nothing is queued\nyet.\n\n* js/remote-improvements (Sun Mar 8 00:10:33 2009 -0800) 23 commits\n + builtin-remote.c: no \"commented out\" code, please\n + builtin-remote: new show output style for push refspecs\n + builtin-remote: new show output style\n + remote: make guess_remote_head() use exact HEAD lookup if it is\n   available\n + builtin-remote: add set-head subcommand\n + builtin-remote: teach show to display remote HEAD\n + builtin-remote: fix two inconsistencies in the output of \"show\n   <remote>\"\n + builtin-remote: make get_remote_ref_states() always populate\n   states.tracked\n + builtin-remote: rename variables and eliminate redundant function\n   call\n + builtin-remote: remove unused code in get_ref_states\n + builtin-remote: refactor duplicated cleanup code\n + string-list: new for_each_string_list() function\n + remote: make match_refs() not short-circuit\n + remote: make match_refs() copy src ref before assigning to\n   peer_ref\n + remote: let guess_remote_head() optionally return all matches\n + remote: make copy_ref() perform a deep copy\n + remote: simplify guess_remote_head()\n + move locate_head() to remote.c\n + move duplicated ref_newer() to remote.c\n + move duplicated get_local_heads() to remote.c\n + refactor find_ref_by_name() to accept const list\n + add basic http clone/fetch tests\n + test scripts: refactor start_httpd helper\n\n* fc/parseopt-config (Sat Mar 7 12:14:05 2009 -0500) 9 commits\n + config: set help text for --bool-or-int\n + git config: don't allow --get-color* and variable type\n + git config: don't allow extra arguments for -e or -l.\n + git config: don't allow multiple variable types\n + git config: don't allow multiple config file locations\n + git config: reorganize to use parseopt\n + git config: reorganize get_color*\n + git config: trivial rename in preparation for parseopt\n + git_config(): not having a per-repo config file is not an error\n\n* mh/cvsimport-tests (Mon Feb 23 06:08:14 2009 +0100) 5 commits\n - Add a test of \"git cvsimport\"'s handling of tags and branches\n - Add some tests of git-cvsimport's handling of vendor branches\n - Test contents of entire cvsimported \"master\" tree contents\n - Use CVS's -f option if available (ignore user's ~/.cvsrc file)\n - Start a library for cvsimport-related tests\n\nTests without fixes are of dubious value.  Any takers?\n\n* tr/maint-1.6.0-send-email-irt (Sun Mar 1 23:45:41 2009 +0100) 1 commit\n + send-email: respect in-reply-to regardless of threading\n\nTests?\n\n* js/notes (Wed Feb 18 11:17:27 2009 -0800) 14 commits\n - tests: fix \"export var=val\"\n - notes: refuse to edit notes outside refs/notes/\n - t3301: use test_must_fail instead of !\n - t3301: fix confusing quoting in test for valid notes ref\n - notes: use GIT_EDITOR and core.editor over VISUAL/EDITOR\n - notes: only clean up message file when editing\n - handle empty notes gracefully\n - git notes show: test empty notes\n - git-notes: fix printing of multi-line notes\n - notes: fix core.notesRef documentation\n - Add an expensive test for git-notes\n - Speed up git notes lookup\n - Add a script to edit/inspect notes\n - Introduce commit notes\n\nRebased and then kicked back to 'pu' to give the author a chance to\nrearrange if necessary.\n\n----------------------------------------------------------------\n[On Hold]\n\n* jc/deny-delete-current-1.7.0 (Mon Feb 9 00:19:46 2009 -0800) 1 commit\n - receive-pack: default receive.denyDeleteCurrent to refuse\n\n* jc/refuse-push-to-current-1.7.0 (Wed Feb 11 02:28:03 2009 -0800) 1 commit\n - Refuse updating the current branch in a non-bare repository via\n   push\n\nThese are for 1.7.0, but the messages when they trigger together may need\nto be rethought.\n\n* jc/commit-assume-also-during-merge (Thu Jan 22 22:21:49 2009 -0800) 3 commits\n - git commit: pathspec without -i/-o implies -i semantics during a\n   merge\n - builtin-commit: shorten eye-sore overlong lines\n - Add \"partial commit\" tests during a conflicted merge\n\nThis was only meant as a weatherballoon to help facilitate discussion.\nWill be discarded.\n"},{"id":"107661","messageId":"94a0d4530903110259q3db690a3leaceff4ddef2869@mail.gmail.com","threadId":"18264","inReplyTo":"7vvdqg5s17.fsf@gitster.siamese.dyndns.org","subject":"Re: What's cooking in git.git (Mar 2009, #03; Wed, 11)","fromName":"Felipe Contreras","fromEmail":"felipe.contreras@gmail.com","sentAt":"2009-03-11T09:59:21Z","receivedAt":"2009-03-11T09:59:21Z","isPatch":false,"sender":{"key":"felipe.contreras@gmail.com","avatar":"https://avatars.githubusercontent.com/u/8358?v=4"},"body":"On Wed, Mar 11, 2009 at 11:26 AM, Junio C Hamano <gitster@pobox.com> wrote:\n> ----------------------------------------------------------------\n> [Actively cooking]\n>\n> * fc/parseopt-config (Sat Mar 7 12:14:05 2009 -0500) 9 commits\n>  + config: set help text for --bool-or-int\n>  + git config: don't allow --get-color* and variable type\n>  + git config: don't allow extra arguments for -e or -l.\n>  + git config: don't allow multiple variable types\n>  + git config: don't allow multiple config file locations\n>  + git config: reorganize to use parseopt\n>  + git config: reorganize get_color*\n>  + git config: trivial rename in preparation for parseopt\n>  + git_config(): not having a per-repo config file is not an error\n\nCan you answer my last email regarding this? You didn't like my last\npatch and explained me how the config --get-color* stuff works, and\nnow that I understand I think the patch still makes sense.\n\n-- \nFelipe Contreras\n"},{"id":"107696","messageId":"76718490903110801t4a213f59v47c85c1e30cd6e89@mail.gmail.com","threadId":"18264","inReplyTo":"7vvdqg5s17.fsf@gitster.siamese.dyndns.org","subject":"Re: What's cooking in git.git (Mar 2009, #03; Wed, 11)","fromName":"Jay Soffian","fromEmail":"jaysoffian@gmail.com","sentAt":"2009-03-11T15:01:43Z","receivedAt":"2009-03-11T15:01:43Z","isPatch":false,"sender":{"key":"jaysoffian@gmail.com","avatar":"https://avatars.githubusercontent.com/u/155970?v=4"},"body":"On Wed, Mar 11, 2009 at 5:26 AM, Junio C Hamano <gitster@pobox.com> wrote:\n\n> * js/remote-improvements (Sun Mar 8 00:10:33 2009 -0800) 23 commits\n>  + builtin-remote.c: no \"commented out\" code, please\n\nThank you for catching this. I don't know how it slipped by me and the\nrest of the list before it was applied. Sigh.\n\nj.\n"},{"id":"107881","messageId":"49B96F1A.3060001@lsrfire.ath.cx","threadId":"18264","inReplyTo":"7vvdqg5s17.fsf@gitster.siamese.dyndns.org","subject":"Re: What's cooking in git.git (Mar 2009, #03; Wed, 11)","fromName":"René Scharfe","fromEmail":"rene.scharfe@lsrfire.ath.cx","sentAt":"2009-03-12T20:22:50Z","receivedAt":"2009-03-12T20:22:50Z","isPatch":false,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Junio C Hamano schrieb:\n> Tonight's 'pu' does not pass its self-test and it is expected; I won't be\n> fixing it and I'm going to bed now.\n\nThis fixes a segfault:\n\ndiff --git a/remote.c b/remote.c\nindex 68c1a84..ea1841e 100644\n--- a/remote.c\n+++ b/remote.c\n@@ -655,9 +655,9 @@ struct remote *remote_get(const char *name)\n \tstruct remote *ret;\n \tint name_given = 0;\n \n \tread_config();\n-\tif (name || strcmp(name, \"-\"))\n+\tif (name && strcmp(name, \"-\"))\n \t\tname_given = 1;\n \telse {\n \t\tname = default_remote_name;\n \t\tname_given = explicit_default_remote_name;\n"},{"id":"107882","messageId":"7viqmejwtz.fsf@gitster.siamese.dyndns.org","threadId":"18264","inReplyTo":"49B96F1A.3060001@lsrfire.ath.cx","subject":"Re: What's cooking in git.git (Mar 2009, #03; Wed, 11)","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2009-03-12T20:43:52Z","receivedAt":"2009-03-12T20:43:52Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:\n\n> Junio C Hamano schrieb:\n>> Tonight's 'pu' does not pass its self-test and it is expected; I won't be\n>> fixing it and I'm going to bed now.\n>\n> This fixes a segfault:\n\nOops, you're right.\n\n\n> diff --git a/remote.c b/remote.c\n> index 68c1a84..ea1841e 100644\n> --- a/remote.c\n> +++ b/remote.c\n> @@ -655,9 +655,9 @@ struct remote *remote_get(const char *name)\n>  \tstruct remote *ret;\n>  \tint name_given = 0;\n>  \n>  \tread_config();\n> -\tif (name || strcmp(name, \"-\"))\n> +\tif (name && strcmp(name, \"-\"))\n>  \t\tname_given = 1;\n>  \telse {\n>  \t\tname = default_remote_name;\n>  \t\tname_given = explicit_default_remote_name;\n"}]}