{"thread":{"id":"4951","subject":"Defaulting fetch to origin when set in the repo-config","startedAt":"2006-07-22T22:54:40Z","lastAt":"2006-07-24T07:31:27Z","messageCount":2,"participants":["Santi Béjar","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"24004","messageId":"87mzb1s11r.fsf@gmail.com","threadId":"4951","inReplyTo":null,"subject":"Defaulting fetch to origin when set in the repo-config","fromName":"Santi Béjar","fromEmail":"sbejar@gmail.com","sentAt":"2006-07-22T22:54:40Z","receivedAt":"2006-07-22T22:54:40Z","isPatch":false,"sender":{"key":"santi@agolina.net","avatar":null},"body":"\nSigned-off-by: Santi Béjar <sbejar@gmail.com>\n\n---\n\ndiff --git a/git-fetch.sh b/git-fetch.sh\nindex a393a50..c2eebee 100755\n--- a/git-fetch.sh\n+++ b/git-fetch.sh\n@@ -70,7 +70,8 @@ case \"$#\" in\n 0)\n \ttest -f \"$GIT_DIR/branches/origin\" ||\n \t\ttest -f \"$GIT_DIR/remotes/origin\" ||\n-\t\t\tdie \"Where do you want to fetch from today?\"\n+\t\t\tgit-repo-config --get remote.origin.url >/dev/null ||\n+\t\t\t\tdie \"Where do you want to fetch from today?\"\n \tset origin ;;\n esac\n \n"},{"id":"24053","messageId":"7virlne9ww.fsf@assigned-by-dhcp.cox.net","threadId":"4951","inReplyTo":"87mzb1s11r.fsf@gmail.com","subject":"Re: Defaulting fetch to origin when set in the repo-config","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2006-07-24T07:31:27Z","receivedAt":"2006-07-24T07:31:27Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks.\n"}]}