{"thread":{"id":"23272","subject":"git push doesn't honor .git/config","startedAt":"2010-03-31T14:54:28Z","lastAt":"2010-03-31T22:03:22Z","messageCount":3,"participants":["Phil Lawrence","Matthieu Moy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"138291","messageId":"h2x530ac78e1003310754v88853e2bj6d59d835025ec140@mail.gmail.com","threadId":"23272","inReplyTo":null,"subject":"git push doesn't honor .git/config","fromName":"Phil Lawrence","fromEmail":"prlawrence@gmail.com","sentAt":"2010-03-31T14:54:28Z","receivedAt":"2010-03-31T14:54:28Z","isPatch":false,"sender":{"key":"prlawrence@gmail.com","avatar":"https://gravatar.com/avatar/352044d06dd8919a32522c18c712e0a8d07b8e8719c820b4b50ffb8f6f2fa1f0?d=mp&s=160"},"body":"I renamed a local branch from MIS-59 to MIS-59_project, and did the following:\n  git branch --set-upstream MIS-59_project origin/MIS-59\n  git push --set-upstream origin MIS-59_project:MIS-59\n\nHowever, .git/config is not being honored by git push; I have to\nsupply all the parameters to actually push changes.\n\n(MIS-59_project)$ git branch -v\n  MIS-38_labor_cat    cab4fe6 [MIS-38] Create Master Labor Category import SQL\n  MIS-39_org          02f9e2f [MIS-39] Create Unanet's Organization export SQL\n  MIS-40_approval_grp 7c3b5ec [MIS-40] Create Unanet Approval Groups import SQL\n  MIS-41_location     8bd55ab [MIS-41] Create Unanet Master Locations import SQL\n  MIS-42_person       9fb1901 [MIS-42] Create SQL for Unanet's Person import\n* MIS-59_project      ed3acc9 [ahead 1] [MIS-59] Switch to using\nget_project_type_unanet()\n  MIS-65_task         651a05b [MIS-65] Switch to using get_project_type_unanet()\n  master              e98c105 Retired OTL\n(MIS-59_project)$ grep -A2 MIS-59_project .git/config\n[branch \"MIS-59_project\"]\n        remote = origin\n        merge = refs/heads/MIS-59\n(MIS-59_project)$ git push\nEverything up-to-date\n(MIS-59_project)$ git branch -v\n  MIS-38_labor_cat    cab4fe6 [MIS-38] Create Master Labor Category import SQL\n  MIS-39_org          02f9e2f [MIS-39] Create Unanet's Organization export SQL\n  MIS-40_approval_grp 7c3b5ec [MIS-40] Create Unanet Approval Groups import SQL\n  MIS-41_location     8bd55ab [MIS-41] Create Unanet Master Locations import SQL\n  MIS-42_person       9fb1901 [MIS-42] Create SQL for Unanet's Person import\n* MIS-59_project      ed3acc9 [ahead 1] [MIS-59] Switch to using\nget_project_type_unanet()\n  MIS-65_task         651a05b [MIS-65] Switch to using get_project_type_unanet()\n  master              e98c105 Retired OTL\n(MIS-59_project)$ git push origin MIS-59_project:MIS-59\nCounting objects: 11, done.\nDelta compression using up to 2 threads.\nCompressing objects: 100% (3/3), done.\nWriting objects: 100% (6/6), 498 bytes, done.\nTotal 6 (delta 2), reused 0 (delta 0)\n=> Syncing Gitorious... [OK]\nTo git@gitorious.burnsmcd.com:~plawrence/mis/plawrences-ora-apps.git\n   1fbf2e0..ed3acc9  MIS-59_project -> MIS-59\n(MIS-59_project)$\n\nDid I miss something, or is this incorrect behavior?  BTW, I'm running\nmsysgit 1.7.0.2-preview20100309 on Windows XP.\n\nThanks,\nPhil Lawrence\n"},{"id":"138292","messageId":"vpq1vf0a5gs.fsf@bauges.imag.fr","threadId":"23272","inReplyTo":"h2x530ac78e1003310754v88853e2bj6d59d835025ec140@mail.gmail.com","subject":"Re: git push doesn't honor .git/config","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@grenoble-inp.fr","sentAt":"2010-03-31T15:14:27Z","receivedAt":"2010-03-31T15:14:27Z","isPatch":false,"sender":{"key":"matthieu.moy@grenoble-inp.fr","avatar":"https://gravatar.com/avatar/72c8a2705971a25dfaff23cece15130d405685845d911aedd5667ace277f3fc5?d=mp&s=160"},"body":"Phil Lawrence <prlawrence@gmail.com> writes:\n\n> I renamed a local branch from MIS-59 to MIS-59_project, and did the following:\n>   git branch --set-upstream MIS-59_project origin/MIS-59\n>   git push --set-upstream origin MIS-59_project:MIS-59\n>\n> However, .git/config is not being honored by git push; I have to\n> supply all the parameters to actually push changes.\n\n... or read the man better ;-)\n\n       branch.<name>.merge\n           [...] It tells git-fetch/git-pull which branch to merge and\n           can also affect git-push (see push.default). [...]\n\n       push.default\n           [...]\n           ·   matching push all matching branches. [...] This is the default.\n           ·   tracking push the current branch to its upstream branch.\n\n-- \nMatthieu Moy\nhttp://www-verimag.imag.fr/~moy/\n"},{"id":"138306","messageId":"w2u530ac78e1003311503m3a70b571ge9708428911f6582@mail.gmail.com","threadId":"23272","inReplyTo":"vpq1vf0a5gs.fsf@bauges.imag.fr","subject":"Re: git push doesn't honor .git/config","fromName":"Phil Lawrence","fromEmail":"prlawrence@gmail.com","sentAt":"2010-03-31T22:03:22Z","receivedAt":"2010-03-31T22:03:22Z","isPatch":false,"sender":{"key":"prlawrence@gmail.com","avatar":"https://gravatar.com/avatar/352044d06dd8919a32522c18c712e0a8d07b8e8719c820b4b50ffb8f6f2fa1f0?d=mp&s=160"},"body":"On Wed, Mar 31, 2010 at 10:14 AM, Matthieu Moy\n<Matthieu.Moy@grenoble-inp.fr> wrote:\n> Phil Lawrence <prlawrence@gmail.com> writes:\n>> ...\n>> However, .git/config is not being honored by git push; I have to\n>> supply all the parameters to actually push changes.\n>\n> ... or read the man better ;-)\n>\n>       branch.<name>.merge\n>           [...] It tells git-fetch/git-pull which branch to merge and\n>           can also affect git-push (see push.default). [...]\n>\n>       push.default\n>           [...]\n>           ·   matching push all matching branches. [...] This is the default.\n>           ·   tracking push the current branch to its upstream branch.\n\nThank you!  That was helpful.\n\nPhil Lawrence\n"}]}