{"thread":{"id":"43271","subject":"Re: Remote 'master' not updated, but works somehow","startedAt":"2006-12-07T11:31:55Z","lastAt":"2006-12-07T11:49:22Z","messageCount":3,"participants":["Andreas Ericsson","Shawn Pearce"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"297572","messageId":"4577FBAB.4070802@op5.se","threadId":"43271","inReplyTo":null,"subject":"Remote 'master' not updated, but works somehow","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2006-12-07T11:31:55Z","receivedAt":"2006-12-07T11:31:55Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Having for a long time been thoroughly annoyed by our strict umasks, I \ndecided to write a little program to deal with it, and naturally I put \nit in a git repo. After the initial commit \n(c0fa1db09bad112f7271378d907bf33d74c06f6b) I published it to my git \nspace on our development server and cloned it out again (to get the \nnifty remotes things set up for free).\n\nThen I noticed I had rushed it, as I usually do with hacks involving a \ntotal of less than 200 lines of code, so I had to make a couple of more \ncommits to make it work.\n\nAfter having pushed the fixes to the public site I went to have a look \nat it in gitweb, at https://devel.op5.se/~exon/git/\n\nI was quite surprised to find that 'master' was still pointing to the \nroot commit. After the usual culprits were excluded (permissions, bad \npaths, whatnot), I decided to try to clone the repo again to a different \nlocation.\n\nHere's what happened:\n\ndevel!exon:~$ git clone softpub/mkpub.git/ mkpub\nremote: Generating pack...\nremote: Done counting 17 objects.\nremote: Deltifying 17 objects.\nremote:  100% (17/17) done\nIndexing 17 objects.\nremote: Total 17 (delta 3), reused 0 (delta 0)\n  100% (17/17) done\nResolving 3 deltas.\n\ndevel!exon:~$ cat softpub/mkpub.git/refs/heads/master\nc0fa1db09bad112f7271378d907bf33d74c06f6b\ndevel!exon:~$ cat mkpub/.git/refs/heads/master\n5ba01a4709bcc8b482b207ba91d78ddb689a4091\ndevel!exon:~$ cd mkpub/\ndevel!exon:~/mkpub$ git push\nEverything up-to-date\ndevel!exon:~/mkpub$ git rev-list master\n5ba01a4709bcc8b482b207ba91d78ddb689a4091\ne6a80831737517aa7ef29628429a18935b71de1d\n8926e1519f69d95685ab5252886e7b237e21108e\nc0bfedaf572ee550af7927acb89a1a2e01c1ef2c\nc0fa1db09bad112f7271378d907bf33d74c06f6b\ndevel!exon:~/mkpub$ GIT_DIR=../softpub/mkpub.git/ git rev-list master\nc0fa1db09bad112f7271378d907bf33d74c06f6b\n\n(yes, the repo only has 4 commits)\n\nAnd that's where I am now. Note that *cloning* from the repo actually \nworks, although I can't for the life of me figure out why.\n\nAny thoughts?\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\n"},{"id":"294190","messageId":"4577FC6A.9050707@op5.se","threadId":"43271","inReplyTo":"4577FBAB.4070802@op5.se","subject":"Re: Remote 'master' not updated, but works somehow","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2006-12-07T11:35:06Z","receivedAt":"2006-12-07T11:35:06Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"scratch this. I just noticed I had somehow managed to get the directory \nsetup like this:\n\ndevel:softpub/mkpub.git       <-- a real repo\ndevel:softpub/mkpub.git/.git  <-- the repo that got pushed to\n\nAndreas Ericsson wrote:\n> Having for a long time been thoroughly annoyed by our strict umasks, I \n> decided to write a little program to deal with it, and naturally I put \n> it in a git repo. After the initial commit \n> (c0fa1db09bad112f7271378d907bf33d74c06f6b) I published it to my git \n> space on our development server and cloned it out again (to get the \n> nifty remotes things set up for free).\n> \n> Then I noticed I had rushed it, as I usually do with hacks involving a \n> total of less than 200 lines of code, so I had to make a couple of more \n> commits to make it work.\n> \n> After having pushed the fixes to the public site I went to have a look \n> at it in gitweb, at https://devel.op5.se/~exon/git/\n> \n> I was quite surprised to find that 'master' was still pointing to the \n> root commit. After the usual culprits were excluded (permissions, bad \n> paths, whatnot), I decided to try to clone the repo again to a different \n> location.\n> \n> Here's what happened:\n> \n> devel!exon:~$ git clone softpub/mkpub.git/ mkpub\n> remote: Generating pack...\n> remote: Done counting 17 objects.\n> remote: Deltifying 17 objects.\n> remote:  100% (17/17) done\n> Indexing 17 objects.\n> remote: Total 17 (delta 3), reused 0 (delta 0)\n>  100% (17/17) done\n> Resolving 3 deltas.\n> \n> devel!exon:~$ cat softpub/mkpub.git/refs/heads/master\n> c0fa1db09bad112f7271378d907bf33d74c06f6b\n> devel!exon:~$ cat mkpub/.git/refs/heads/master\n> 5ba01a4709bcc8b482b207ba91d78ddb689a4091\n> devel!exon:~$ cd mkpub/\n> devel!exon:~/mkpub$ git push\n> Everything up-to-date\n> devel!exon:~/mkpub$ git rev-list master\n> 5ba01a4709bcc8b482b207ba91d78ddb689a4091\n> e6a80831737517aa7ef29628429a18935b71de1d\n> 8926e1519f69d95685ab5252886e7b237e21108e\n> c0bfedaf572ee550af7927acb89a1a2e01c1ef2c\n> c0fa1db09bad112f7271378d907bf33d74c06f6b\n> devel!exon:~/mkpub$ GIT_DIR=../softpub/mkpub.git/ git rev-list master\n> c0fa1db09bad112f7271378d907bf33d74c06f6b\n> \n> (yes, the repo only has 4 commits)\n> \n> And that's where I am now. Note that *cloning* from the repo actually \n> works, although I can't for the life of me figure out why.\n> \n> Any thoughts?\n> \n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\n"},{"id":"298091","messageId":"20061207114922.GC10781@spearce.org","threadId":"43271","inReplyTo":"4577FC6A.9050707@op5.se","subject":"Re: Remote 'master' not updated, but works somehow","fromName":"Shawn Pearce","fromEmail":"spearce@spearce.org","sentAt":"2006-12-07T11:49:22Z","receivedAt":"2006-12-07T11:49:22Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Andreas Ericsson <ae@op5.se> wrote:\n> scratch this. I just noticed I had somehow managed to get the directory \n> setup like this:\n> \n> devel:softpub/mkpub.git       <-- a real repo\n> devel:softpub/mkpub.git/.git  <-- the repo that got pushed to\n\nOne's gotta wonder how that's ever a valid directory setup...\n\nAlthough I'm running a configuration of:\n\n  root/proj.git                        <-- a real repo\n  root/proj.git/info/new-commit-check  <-- a fake repo\n\nwhere new-commit-check has root/proj.git not only as an alternate\nODB but also has root/proj.git/refs symlinked into its own refs\ndirectory.\n\n-- \n"}]}