{"thread":{"id":"10472","subject":"stg branch --create test v2.6.24-rc1 doesn't work","startedAt":"2007-10-26T10:42:53Z","lastAt":"2007-11-02T09:24:59Z","messageCount":4,"participants":["Aneesh Kumar","Catalin Marinas"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"57271","messageId":"cc723f590710260342t5fd0bdc3nc1ea5198cea1a604@mail.gmail.com","threadId":"10472","inReplyTo":null,"subject":"stg branch --create test v2.6.24-rc1 doesn't work","fromName":"Aneesh Kumar","fromEmail":"aneesh.kumar@gmail.com","sentAt":"2007-10-26T10:42:53Z","receivedAt":"2007-10-26T10:42:53Z","isPatch":false,"sender":{"key":"aneesh.kumar@gmail.com","avatar":"https://gravatar.com/avatar/0621fc0b2f14ead1e9024382f16053a808c148596da30c1b92572fa075621f68?d=mp&s=160"},"body":"$ stg branch --create test v2.6.24-rc1\nChecking for changes in the working directory ... done\nDon't know how to determine parent branch from \"v2.6.24-rc1\"\nBranch \"test\" created\n[test@linux-review-ext]$ git log\n\n\nThrows an error/warning in the above command.\n\nAlso import then gives\n\n[test@linux-review-ext]$ stg import\n/home/opensource/patches/ext4-patch-queue/ext4_mballoc_freespace_accounting_fix.patch\nChecking for changes in the working directory ... done\nfatal: cebdeed27b068dcc3e7c311d7ec0d9c33b5138c2 is not a valid 'commit' object\nstg import: git-commit-tree failed with code 128\n"},{"id":"57486","messageId":"b0943d9e0710291011p11bd8901udeb758fa653610bc@mail.gmail.com","threadId":"10472","inReplyTo":"cc723f590710260342t5fd0bdc3nc1ea5198cea1a604@mail.gmail.com","subject":"Re: stg branch --create test v2.6.24-rc1 doesn't work","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@gmail.com","sentAt":"2007-10-29T17:11:33Z","receivedAt":"2007-10-29T17:11:33Z","isPatch":false,"sender":{"key":"catalin.marinas@gmail.com","avatar":null},"body":"On 26/10/2007, Aneesh Kumar <aneesh.kumar@gmail.com> wrote:\n> $ stg branch --create test v2.6.24-rc1\n> Checking for changes in the working directory ... done\n> Don't know how to determine parent branch from \"v2.6.24-rc1\"\n> Branch \"test\" created\n> [test@linux-review-ext]$ git log\n>\n>\n> Throws an error/warning in the above command.\n>\n> Also import then gives\n>\n> [test@linux-review-ext]$ stg import\n> /home/opensource/patches/ext4-patch-queue/ext4_mballoc_freespace_accounting_fix.patch\n> Checking for changes in the working directory ... done\n> fatal: cebdeed27b068dcc3e7c311d7ec0d9c33b5138c2 is not a valid 'commit' object\n> stg import: git-commit-tree failed with code 128\n\nWhat version of StGIT are you using?\n\nYou could try 'stg branch --create test v2.6.24-rc1^{commit} but I\nthought latest StGIT adds this by default.\n\n-- \nCatalin\n"},{"id":"57525","messageId":"cc723f590710292150y752034c7x5642758eb51a7ed6@mail.gmail.com","threadId":"10472","inReplyTo":"b0943d9e0710291011p11bd8901udeb758fa653610bc@mail.gmail.com","subject":"Re: stg branch --create test v2.6.24-rc1 doesn't work","fromName":"Aneesh Kumar","fromEmail":"aneesh.kumar@gmail.com","sentAt":"2007-10-30T04:50:05Z","receivedAt":"2007-10-30T04:50:05Z","isPatch":false,"sender":{"key":"aneesh.kumar@gmail.com","avatar":"https://gravatar.com/avatar/0621fc0b2f14ead1e9024382f16053a808c148596da30c1b92572fa075621f68?d=mp&s=160"},"body":"On 10/29/07, Catalin Marinas <catalin.marinas@gmail.com> wrote:\n> On 26/10/2007, Aneesh Kumar <aneesh.kumar@gmail.com> wrote:\n> > $ stg branch --create test v2.6.24-rc1\n> > Checking for changes in the working directory ... done\n> > Don't know how to determine parent branch from \"v2.6.24-rc1\"\n> > Branch \"test\" created\n> > [test@linux-review-ext]$ git log\n> >\n> >\n> > Throws an error/warning in the above command.\n> >\n> > Also import then gives\n> >\n> > [test@linux-review-ext]$ stg import\n> > /home/opensource/patches/ext4-patch-queue/ext4_mballoc_freespace_accounting_fix.patch\n> > Checking for changes in the working directory ... done\n> > fatal: cebdeed27b068dcc3e7c311d7ec0d9c33b5138c2 is not a valid 'commit' object\n> > stg import: git-commit-tree failed with code 128\n>\n> What version of StGIT are you using?\n>\n\n\nLatest stgit.  d4356ac6143757131b58c95ca5c6a7b386cc6087\n\n\n> You could try 'stg branch --create test v2.6.24-rc1^{commit} but I\n> thought latest StGIT adds this by default.\n>\n\n\n-aneesh\n"},{"id":"57946","messageId":"b0943d9e0711020224q6e4b6acn5879183dd14b6fff@mail.gmail.com","threadId":"10472","inReplyTo":"cc723f590710260342t5fd0bdc3nc1ea5198cea1a604@mail.gmail.com","subject":"Re: stg branch --create test v2.6.24-rc1 doesn't work","fromName":"Catalin Marinas","fromEmail":"catalin.marinas@gmail.com","sentAt":"2007-11-02T09:24:59Z","receivedAt":"2007-11-02T09:24:59Z","isPatch":false,"sender":{"key":"catalin.marinas@gmail.com","avatar":null},"body":"On 26/10/2007, Aneesh Kumar <aneesh.kumar@gmail.com> wrote:\n> $ stg branch --create test v2.6.24-rc1\n> Checking for changes in the working directory ... done\n> Don't know how to determine parent branch from \"v2.6.24-rc1\"\n> Branch \"test\" created\n[...]\n> [test@linux-review-ext]$ stg import\n> /home/opensource/patches/ext4-patch-queue/ext4_mballoc_freespace_accounting_fix.patch\n> Checking for changes in the working directory ... done\n> fatal: cebdeed27b068dcc3e7c311d7ec0d9c33b5138c2 is not a valid 'commit' object\n> stg import: git-commit-tree failed with code 128\n\nThe problem is that a tag id is used as the head of the stack rather\nthan the corresponding commit id. I modified StGIT to get the commit\nid (and, as I said, you can work around this in the meantime by\npassing \"v2.6.24-rc1^{commit}\" to the branch command).\n\nI'll push the changes tonight but I have to solve the branch deletion\nas it is left in an inconsistent state after import (and --force\nshould be able to deal with it but it doesn't).\n\n-- \nCatalin\n"}]}