Yep, I updated it with a check that the command succeeded.

Jan

> 10. mar. 2021 kl. 23:09 skrev Ilan Ginzburg <[email protected]>:
> 
> Any risk in the script that command:
> git push ${REMOTE} 
> cominvent/$BRANCH:refs/tags/history/branches/lucene-solr/$BRANCH
> errors out in some exotic way (?) but the script continues anyway and 
> proceeds with the delete:
> git push ${REMOTE} --delete $BRANCH
> 
> 
> On Wed, Mar 10, 2021 at 10:35 PM Jan Høydahl <[email protected] 
> <mailto:[email protected]>> wrote:
> Ok, I took a stab at this
> 
> We have 113 branches. Here is a script I prepared that will work directly on 
> a git remote, first creating the tag then deleting the branch.
> https://gist.github.com/80a7eea6bacd4e32646a7958d1e9a870 
> <https://gist.github.com/80a7eea6bacd4e32646a7958d1e9a870>
> 
> In the script I have added the list of branches that I propose to "archive".
> 
> Below that there is a commented section of branches that are reported as 
> "active" by GitHub that should probably stay for now
> Finally, we have some branches we might want to keep around for refernce?
> I'm not sure how useful it is to keep a branch in solr.git for, say 
> branch_8_8, as it will fall behind as branch_8_8 in lucene-solr.git gets 
> updated. So probably archive those as well?
> 
> The pure lucene branches like LUCENE-9004 won't need a tag at all I suppose, 
> but it won't hurt either.
> 
> Jan
> 
> > 10. mar. 2021 kl. 21:16 skrev Dawid Weiss <[email protected] 
> > <mailto:[email protected]>>:
> > 
> >> We already did this before, see list of existing tags (git tag -l)
> > 
> > I know, I did it, after all... :) This was a move from subversion
> > though... slightly different. Anyway - if you guys want to proceed
> > with this, please go ahead, I don't mind. A spring cleaning is needed
> > every couple of years... If we just leave the main branch it'll be
> > very elegant. People work on their local repos these days anyway, it's
> > not like everyone pollutes the same workspace.
> > 
> > D.
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected] 
> > <mailto:[email protected]>
> > For additional commands, e-mail: [email protected] 
> > <mailto:[email protected]>
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected] 
> <mailto:[email protected]>
> For additional commands, e-mail: [email protected] 
> <mailto:[email protected]>
> 

Reply via email to