{"thread":{"id":"8364","subject":"[MinGW port] Unable to repack on Clearcase dynamic views","startedAt":"2007-05-30T14:42:53Z","lastAt":"2007-06-01T18:11:37Z","messageCount":14,"participants":["Nguyen Thai Ngoc Duy","Paolo Teti","Johannes Sixt","Robin Rosenberg","Johannes Schindelin","Jan Hudec"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"43638","messageId":"fcaeb9bf0705300742u22b54c78vccbc037fb553141f@mail.gmail.com","threadId":"8364","inReplyTo":null,"subject":"[MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2007-05-30T14:42:53Z","receivedAt":"2007-05-30T14:42:53Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"Hi,\n\nOn clearcase dynamic views (kind of virtual drives), \"mv -f a b\" won't\nwork if \"a\" is read-only. Because git-repack.sh removes all write\npermission before moving packs, it fails on clearcase dynamic views.\n\nMy approach is rather ugly. Does anyone have a better solution?\n\ndiff --git a/git-repack.sh b/git-repack.sh\nindex acb78ba..76a9525 100755\n--- a/git-repack.sh\n+++ b/git-repack.sh\n@@ -86,10 +86,22 @@ else\n \tmv -f \"$PACKTMP-$name.idx\"  \"$PACKDIR/pack-$name.idx\" &&\n \ttest -f \"$PACKDIR/pack-$name.pack\" &&\n \ttest -f \"$PACKDIR/pack-$name.idx\" || {\n-\t\techo >&2 \"Couldn't replace the existing pack with updated one.\"\n-\t\techo >&2 \"The original set of packs have been saved as\"\n-\t\techo >&2 \"old-pack-$name.{pack,idx} in $PACKDIR.\"\n-\t\texit 1\n+\t\t# Clearcase dynamic views do not allow to move file without write permission\n+\t\t# Try the second time with write allowed\n+\t\tchmod u+w \"$PACKTMP-$name.pack\"\n+\t\tchmod u+w \"$PACKTMP-$name.idx\"\n+\n+\t\tmv -f \"$PACKTMP-$name.pack\" \"$PACKDIR/pack-$name.pack\" &&\n+\t\tmv -f \"$PACKTMP-$name.idx\"  \"$PACKDIR/pack-$name.idx\" &&\n+\t\ttest -f \"$PACKDIR/pack-$name.pack\" &&\n+\t\ttest -f \"$PACKDIR/pack-$name.idx\" || {\n+\t\t\techo >&2 \"Couldn't replace the existing pack with updated one.\"\n+\t\t\techo >&2 \"The original set of packs have been saved as\"\n+\t\t\techo >&2 \"old-pack-$name.{pack,idx} in $PACKDIR.\"\n+\t\t\texit 1\n+\t\t}\n+\t\tchmod a-w \"$PACKDIR/pack-$name.pack\"\n+\t\tchmod a-w \"$PACKDIR/pack-$name.idx\"\n \t}\n \trm -f \"$PACKDIR/old-pack-$name.pack\" \"$PACKDIR/old-pack-$name.idx\"\n fi\n\n\n-- \nDuy\n"},{"id":"43640","messageId":"34a7ae040705300811o22a7d9e9y1ca6e52c4bf23fcc@mail.gmail.com","threadId":"8364","inReplyTo":"fcaeb9bf0705300742u22b54c78vccbc037fb553141f@mail.gmail.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Paolo Teti","fromEmail":"paolo.teti@gmail.com","sentAt":"2007-05-30T15:11:58Z","receivedAt":"2007-05-30T15:11:58Z","isPatch":false,"sender":{"key":"paolo.teti@gmail.com","avatar":null},"body":"2007/5/30, Nguyen Thai Ngoc Duy <pclouds@gmail.com>:\n> Hi,\n>\n> On clearcase dynamic views (kind of virtual drives), \"mv -f a b\" won't\n> work if \"a\" is read-only. Because git-repack.sh removes all write\n> permission before moving packs, it fails on clearcase dynamic views.\n>\n> My approach is rather ugly. Does anyone have a better solution?\n\nI hate clearcase, but honestly I have used it forced by a customer..\nThe real problem is why you need to do a repack in a CC view, but..\n\nto move a file in a Clearcase view you have to use 'cleartool mv ...'\n(or 'cleartool relocate') and not the UNIX mv command...\n\n..and he directory where the element to be moved or renamed resides\nmust be checked out.\n"},{"id":"43641","messageId":"465D982C.B46DD718@eudaptics.com","threadId":"8364","inReplyTo":"fcaeb9bf0705300742u22b54c78vccbc037fb553141f@mail.gmail.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Johannes Sixt","fromEmail":"j.sixt@eudaptics.com","sentAt":"2007-05-30T15:28:44Z","receivedAt":"2007-05-30T15:28:44Z","isPatch":false,"sender":{"key":"j6t@kdbg.org","avatar":"https://avatars.githubusercontent.com/u/14810926?v=4"},"body":"Nguyen Thai Ngoc Duy wrote:\n> On clearcase dynamic views (kind of virtual drives), \"mv -f a b\" won't\n> work if \"a\" is read-only. Because git-repack.sh removes all write\n> permission before moving packs, it fails on clearcase dynamic views.\n> \n> My approach is rather ugly. Does anyone have a better solution?\n\nIf you do two 'git repack -a -d' in a row, the second one fails even\nwith this patch, right? To fix it, you must 'chmod u+w' in the for-loop\nright above this hunk, too.\n\nSince you 'chmod a-w' after the mv, why not just remove the first ones\nbefore the first mv? Then you can get rid of the second try.\n\n-- Hannes\n\n> \n> diff --git a/git-repack.sh b/git-repack.sh\n> index acb78ba..76a9525 100755\n> --- a/git-repack.sh\n> +++ b/git-repack.sh\n> @@ -86,10 +86,22 @@ else\n>         mv -f \"$PACKTMP-$name.idx\"  \"$PACKDIR/pack-$name.idx\" &&\n>         test -f \"$PACKDIR/pack-$name.pack\" &&\n>         test -f \"$PACKDIR/pack-$name.idx\" || {\n> -               echo >&2 \"Couldn't replace the existing pack with updated one.\"\n> -               echo >&2 \"The original set of packs have been saved as\"\n> -               echo >&2 \"old-pack-$name.{pack,idx} in $PACKDIR.\"\n> -               exit 1\n> +               # Clearcase dynamic views do not allow to move file without write permission\n> +               # Try the second time with write allowed\n> +               chmod u+w \"$PACKTMP-$name.pack\"\n> +               chmod u+w \"$PACKTMP-$name.idx\"\n> +\n> +               mv -f \"$PACKTMP-$name.pack\" \"$PACKDIR/pack-$name.pack\" &&\n> +               mv -f \"$PACKTMP-$name.idx\"  \"$PACKDIR/pack-$name.idx\" &&\n> +               test -f \"$PACKDIR/pack-$name.pack\" &&\n> +               test -f \"$PACKDIR/pack-$name.idx\" || {\n> +                       echo >&2 \"Couldn't replace the existing pack with updated one.\"\n> +                       echo >&2 \"The original set of packs have been saved as\"\n> +                       echo >&2 \"old-pack-$name.{pack,idx} in $PACKDIR.\"\n> +                       exit 1\n> +               }\n> +               chmod a-w \"$PACKDIR/pack-$name.pack\"\n> +               chmod a-w \"$PACKDIR/pack-$name.idx\"\n>         }\n>         rm -f \"$PACKDIR/old-pack-$name.pack\" \"$PACKDIR/old-pack-$name.idx\"\n>  fi\n> \n> --\n> Duy\n"},{"id":"43642","messageId":"fcaeb9bf0705300833t6f0639ddx2f507996e48d838c@mail.gmail.com","threadId":"8364","inReplyTo":"34a7ae040705300811o22a7d9e9y1ca6e52c4bf23fcc@mail.gmail.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2007-05-30T15:33:53Z","receivedAt":"2007-05-30T15:33:53Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On 5/30/07, Paolo Teti <paolo.teti@gmail.com> wrote:\n> 2007/5/30, Nguyen Thai Ngoc Duy <pclouds@gmail.com>:\n> > Hi,\n> >\n> > On clearcase dynamic views (kind of virtual drives), \"mv -f a b\" won't\n> > work if \"a\" is read-only. Because git-repack.sh removes all write\n> > permission before moving packs, it fails on clearcase dynamic views.\n> >\n> > My approach is rather ugly. Does anyone have a better solution?\n>\n> I hate clearcase, but honestly I have used it forced by a customer..\n> The real problem is why you need to do a repack in a CC view, but..\n\nI don't like it either :) But you remind me the Matthias' workdir\npatchset. With that I can move out .git to a real drive/filesystem\n(which should also give better performance).\n\nI think it's a valid use case. Anyone remember why Matthias' patchset\nwas dropped?\nIt was last mentioned in\nhttp://article.gmane.org/gmane.comp.version-control.git/43041\n\nJunio, Matthias? May I help?\n\n>\n> to move a file in a Clearcase view you have to use 'cleartool mv ...'\n> (or 'cleartool relocate') and not the UNIX mv command...\n\n'cleartool mv' is used for clearcase-manages files. My git repository\nare private files.\n\n>\n> ..and he directory where the element to be moved or renamed resides\n> must be checked out.\n>\n\n\n-- \nDuy\n"},{"id":"43644","messageId":"fcaeb9bf0705300843v10782be3i985d10144535868c@mail.gmail.com","threadId":"8364","inReplyTo":"fcaeb9bf0705300840w221c46c1y742388fc9e61c2fa@mail.gmail.com","subject":"Fwd: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2007-05-30T15:43:55Z","receivedAt":"2007-05-30T15:43:55Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"I'm sorry, forgot to CC the list.\n\n---------- Forwarded message ----------\nFrom: Nguyen Thai Ngoc Duy <pclouds@gmail.com>\nDate: May 30, 2007 11:40 AM\nSubject: Re: [MinGW port] Unable to repack on Clearcase dynamic views\nTo: Johannes Sixt <J.Sixt@eudaptics.com>\n\n\nOn 5/30/07, Johannes Sixt <J.Sixt@eudaptics.com> wrote:\n> Nguyen Thai Ngoc Duy wrote:\n> > On clearcase dynamic views (kind of virtual drives), \"mv -f a b\" won't\n> > work if \"a\" is read-only. Because git-repack.sh removes all write\n> > permission before moving packs, it fails on clearcase dynamic views.\n> >\n> > My approach is rather ugly. Does anyone have a better solution?\n>\n> If you do two 'git repack -a -d' in a row, the second one fails even\n> with this patch, right? To fix it, you must 'chmod u+w' in the for-loop\n> right above this hunk, too.\n\nWell, I'm not sure I understand it. git-repack with the patch applied\nruns fine for me. Can you explain it more detail please?\n\n>\n> Since you 'chmod a-w' after the mv, why not just remove the first ones\n> before the first mv? Then you can get rid of the second try.\n\nBecause I'm not sure what that command is for :) I suspect that packs\n(or anything inside .git/objects) are read-only and the author want to\nmake sure no one can write to the packs as soon as they are created.\nThe other way to do is to move 'chmod a-w' down several lines -- we\nonly make those files read-only after moving them to\n.git/objects/packs.\n\n>\n> -- Hannes\n>\n> >\n> > diff --git a/git-repack.sh b/git-repack.sh\n> > index acb78ba..76a9525 100755\n> > --- a/git-repack.sh\n> > +++ b/git-repack.sh\n> > @@ -86,10 +86,22 @@ else\n> >         mv -f \"$PACKTMP-$name.idx\"  \"$PACKDIR/pack-$name.idx\" &&\n> >         test -f \"$PACKDIR/pack-$name.pack\" &&\n> >         test -f \"$PACKDIR/pack-$name.idx\" || {\n> > -               echo >&2 \"Couldn't replace the existing pack with updated one.\"\n> > -               echo >&2 \"The original set of packs have been saved as\"\n> > -               echo >&2 \"old-pack-$name.{pack,idx} in $PACKDIR.\"\n> > -               exit 1\n> > +               # Clearcase dynamic views do not allow to move file without write permission\n> > +               # Try the second time with write allowed\n> > +               chmod u+w \"$PACKTMP-$name.pack\"\n> > +               chmod u+w \"$PACKTMP-$name.idx\"\n> > +\n> > +               mv -f \"$PACKTMP-$name.pack\" \"$PACKDIR/pack-$name.pack\" &&\n> > +               mv -f \"$PACKTMP-$name.idx\"  \"$PACKDIR/pack-$name.idx\" &&\n> > +               test -f \"$PACKDIR/pack-$name.pack\" &&\n> > +               test -f \"$PACKDIR/pack-$name.idx\" || {\n> > +                       echo >&2 \"Couldn't replace the existing pack with updated one.\"\n> > +                       echo >&2 \"The original set of packs have been saved as\"\n> > +                       echo >&2 \"old-pack-$name.{pack,idx} in $PACKDIR.\"\n> > +                       exit 1\n> > +               }\n> > +               chmod a-w \"$PACKDIR/pack-$name.pack\"\n> > +               chmod a-w \"$PACKDIR/pack-$name.idx\"\n> >         }\n> >         rm -f \"$PACKDIR/old-pack-$name.pack\" \"$PACKDIR/old-pack-$name.idx\"\n> >  fi\n> >\n> > --\n> > Duy\n>\n>\n\n\n--\nDuy\n\n\n-- \nDuy\n"},{"id":"43646","messageId":"34a7ae040705300930l6b43aeb9qcb2a68858848d3d@mail.gmail.com","threadId":"8364","inReplyTo":"fcaeb9bf0705300833t6f0639ddx2f507996e48d838c@mail.gmail.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Paolo Teti","fromEmail":"paolo.teti@gmail.com","sentAt":"2007-05-30T16:30:57Z","receivedAt":"2007-05-30T16:30:57Z","isPatch":false,"sender":{"key":"paolo.teti@gmail.com","avatar":null},"body":"2007/5/30, Nguyen Thai Ngoc Duy <pclouds@gmail.com>:\n> On 5/30/07, Paolo Teti <paolo.teti@gmail.com> wrote:\n\n> > to move a file in a Clearcase view you have to use 'cleartool mv ...'\n> > (or 'cleartool relocate') and not the UNIX mv command...\n>\n> 'cleartool mv' is used for clearcase-manages files. My git repository\n> are private files.\n\nok, but also cleartool mv works for private file..\n\nTake a look at:\n\nhttp://www-1.ibm.com/support/docview.wss?rs=984&context=SSSH27&context=SSCGQ7D&q1=mv+read-only+files&uid=swg1IC46584&loc=en_US&cs=utf-8&lang=en\n\nshould be a clearcase bug.\n"},{"id":"43654","messageId":"200705302028.15549.robin.rosenberg.lists@dewire.com","threadId":"8364","inReplyTo":"fcaeb9bf0705300833t6f0639ddx2f507996e48d838c@mail.gmail.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2007-05-30T18:28:15Z","receivedAt":"2007-05-30T18:28:15Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"onsdag 30 maj 2007 skrev Nguyen Thai Ngoc Duy:\n> On 5/30/07, Paolo Teti <paolo.teti@gmail.com> wrote:\n> > 2007/5/30, Nguyen Thai Ngoc Duy <pclouds@gmail.com>:\n> > > Hi,\n> > >\n> > > On clearcase dynamic views (kind of virtual drives), \"mv -f a b\" won't\n> > > work if \"a\" is read-only. Because git-repack.sh removes all write\n> > > permission before moving packs, it fails on clearcase dynamic views.\n> > >\n> > > My approach is rather ugly. Does anyone have a better solution?\n> >\n> > I hate clearcase, but honestly I have used it forced by a customer..\n> > The real problem is why you need to do a repack in a CC view, but..\n> \n> I don't like it either :) But you remind me the Matthias' workdir\n> patchset. With that I can move out .git to a real drive/filesystem\n> (which should also give better performance).\n> \n> I think it's a valid use case. Anyone remember why Matthias' patchset\n> was dropped?\n> It was last mentioned in\n> http://article.gmane.org/gmane.comp.version-control.git/43041\n> \n> Junio, Matthias? May I help?\n\nWasn't because it's better to make .git a link to a repository somewhere \nelse? Just a guess.\n\nln -s /somewhere/repo/.git .git\n\nWorks fine for me (yes, in a clearcase dynamic view).\n\nBTW, Does anyone have something like git-cvsexportcommit for clearcase?\n\n-- robin\n"},{"id":"43655","messageId":"Pine.LNX.4.64.0705301944220.4046@racer.site","threadId":"8364","inReplyTo":"200705302028.15549.robin.rosenberg.lists@dewire.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-05-30T18:44:59Z","receivedAt":"2007-05-30T18:44:59Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Wed, 30 May 2007, Robin Rosenberg wrote:\n\n> Wasn't because it's better to make .git a link to a repository somewhere \n> else? Just a guess.\n> \n> ln -s /somewhere/repo/.git .git\n> \n> Works fine for me (yes, in a clearcase dynamic view).\n\nMinGW does not know symbolic links (at least not on the common \nfilesystems).\n\nCiao,\nDscho\n"},{"id":"43656","messageId":"fcaeb9bf0705301208p6ce00315uc3cde4d43903ec0c@mail.gmail.com","threadId":"8364","inReplyTo":"200705302028.15549.robin.rosenberg.lists@dewire.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2007-05-30T19:08:40Z","receivedAt":"2007-05-30T19:08:40Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On 5/30/07, Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:\n> onsdag 30 maj 2007 skrev Nguyen Thai Ngoc Duy:\n> > On 5/30/07, Paolo Teti <paolo.teti@gmail.com> wrote:\n> > > 2007/5/30, Nguyen Thai Ngoc Duy <pclouds@gmail.com>:\n> > > > Hi,\n> > > >\n> > > > On clearcase dynamic views (kind of virtual drives), \"mv -f a b\" won't\n> > > > work if \"a\" is read-only. Because git-repack.sh removes all write\n> > > > permission before moving packs, it fails on clearcase dynamic views.\n> > > >\n> > > > My approach is rather ugly. Does anyone have a better solution?\n> > >\n> > > I hate clearcase, but honestly I have used it forced by a customer..\n> > > The real problem is why you need to do a repack in a CC view, but..\n> >\n> > I don't like it either :) But you remind me the Matthias' workdir\n> > patchset. With that I can move out .git to a real drive/filesystem\n> > (which should also give better performance).\n> >\n> > I think it's a valid use case. Anyone remember why Matthias' patchset\n> > was dropped?\n> > It was last mentioned in\n> > http://article.gmane.org/gmane.comp.version-control.git/43041\n> >\n> > Junio, Matthias? May I help?\n>\n> Wasn't because it's better to make .git a link to a repository somewhere\n> else? Just a guess.\n>\n> ln -s /somewhere/repo/.git .git\n>\n> Works fine for me (yes, in a clearcase dynamic view).\n\nClearcase symlinks require checkout/checkin stuffs that I really don't\nwant to mess up with. Moreover, it seems not work if the link\ndestination is out of clearcase view (which is what I wanted).\n-- \nDuy\n"},{"id":"43658","messageId":"200705302128.34111.robin.rosenberg.lists@dewire.com","threadId":"8364","inReplyTo":"fcaeb9bf0705301208p6ce00315uc3cde4d43903ec0c@mail.gmail.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2007-05-30T19:28:33Z","receivedAt":"2007-05-30T19:28:33Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"onsdag 30 maj 2007 skrev Nguyen Thai Ngoc Duy:\n> Clearcase symlinks require checkout/checkin stuffs that I really don't\n> want to mess up with. Moreover, it seems not work if the link\n> destination is out of clearcase view (which is what I wanted).\n\nWell obviously.. :/\n\nI guess junction points in dynamic views are out of the question too. Would\nsetting GIT_DIR be too cumbersome?\n\n-- robin\n"},{"id":"43660","messageId":"fcaeb9bf0705301248o4609d532p60ba24805fa0e5ad@mail.gmail.com","threadId":"8364","inReplyTo":"200705302128.34111.robin.rosenberg.lists@dewire.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2007-05-30T19:48:18Z","receivedAt":"2007-05-30T19:48:18Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On 5/30/07, Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:\n> onsdag 30 maj 2007 skrev Nguyen Thai Ngoc Duy:\n> > Clearcase symlinks require checkout/checkin stuffs that I really don't\n> > want to mess up with. Moreover, it seems not work if the link\n> > destination is out of clearcase view (which is what I wanted).\n>\n> Well obviously.. :/\n>\n> I guess junction points in dynamic views are out of the question too. Would\n> setting GIT_DIR be too cumbersome?\n\nWell, I've got the same errors as before in this thread :)\nhttp://thread.gmane.org/gmane.comp.version-control.git/41586\n-- \nDuy\n"},{"id":"43682","messageId":"34a7ae040705310246w72c30c19ic063895a46b8f3fb@mail.gmail.com","threadId":"8364","inReplyTo":"200705302028.15549.robin.rosenberg.lists@dewire.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Paolo Teti","fromEmail":"paolo.teti@gmail.com","sentAt":"2007-05-31T09:46:12Z","receivedAt":"2007-05-31T09:46:12Z","isPatch":false,"sender":{"key":"paolo.teti@gmail.com","avatar":null},"body":"2007/5/30, Robin Rosenberg <robin.rosenberg.lists@dewire.com>:\n\n> BTW, Does anyone have something like git-cvsexportcommit for clearcase?\n\na stupid workaround is git-cvsexportcommit + clearimport /clearexport_cvs.\n"},{"id":"43692","messageId":"200705312051.46429.robin.rosenberg.lists@dewire.com","threadId":"8364","inReplyTo":"34a7ae040705310246w72c30c19ic063895a46b8f3fb@mail.gmail.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2007-05-31T18:51:43Z","receivedAt":"2007-05-31T18:51:43Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"torsdag 31 maj 2007 skrev Paolo Teti:\n> 2007/5/30, Robin Rosenberg <robin.rosenberg.lists@dewire.com>:\n> \n> > BTW, Does anyone have something like git-cvsexportcommit for clearcase?\n> \n> a stupid workaround is git-cvsexportcommit + clearimport /clearexport_cvs.\n> -\nThat would require a clearcase to cvs converter, wouldn't it, so I'd have something to commit to..\nEven more stupid than my attempt at a clearcase to git converter.\n\n-- robin\n"},{"id":"43748","messageId":"20070601181137.GA3002@efreet.light.src","threadId":"8364","inReplyTo":"200705302028.15549.robin.rosenberg.lists@dewire.com","subject":"Re: [MinGW port] Unable to repack on Clearcase dynamic views","fromName":"Jan Hudec","fromEmail":"bulb@ucw.cz","sentAt":"2007-06-01T18:11:37Z","receivedAt":"2007-06-01T18:11:37Z","isPatch":false,"sender":{"key":"bulb@ucw.cz","avatar":null},"body":"On Wed, May 30, 2007 at 20:28:15 +0200, Robin Rosenberg wrote:\n> Wasn't because it's better to make .git a link to a repository somewhere \n> else? Just a guess.\n> \n> ln -s /somewhere/repo/.git .git\n> \n> Works fine for me (yes, in a clearcase dynamic view).\n\nIt works for me too. It requires cygwin version of git though, since windows\ndon't have native symlinks.\n\n> BTW, Does anyone have something like git-cvsexportcommit for clearcase?\n\nNo, but it should not be too hard to create.\n\nIf you want to quickly import something, you can try starting with something\nlike:\n\ndiff clearcase-view git-checkout > p\nlsdiff p | xargs -d '\\n' cleartool checkout\npatch -p $n < p\n\nYou'll have to sort out which directories to run which command in and how\nmany components to strip with -p in the patch. It also does not handle adding\nand removing.\n\n-- \n\t\t\t\t\t\t Jan 'Bulb' Hudec <bulb@ucw.cz>\n"}]}