Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update git-cms-init #101

Merged
merged 1 commit into from
Aug 31, 2018
Merged

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Aug 31, 2018

Better fix for the issue reported at #99 (comment), which does not break git-cms-init for non cms-sw master repositories and with the added advantage of using a standard git command instead of an ad-hoc sequence of "plumbing" git commands.

Better fix for the issue reported at
cms-sw#99 (comment),
which does not break git-cms-init for non cms-sw master repositorties
and with the added advantage of using a standard git command instead of
an ad-hoc sequence of "plumbing" git commands.
@cmsbuild
Copy link

A new Pull Request was created by @fwyzard (Andrea Bocci) for branch master.

@cmsbuild, @smuzaffar, @gudrutis, @mrodozov can you please review it and eventually sign? Thanks.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.

external issue cms-sw/cmsdist#4308

@fwyzard fwyzard mentioned this pull request Aug 31, 2018
@mrodozov mrodozov merged commit 1fc59d2 into cms-sw:master Aug 31, 2018
@smuzaffar
Copy link
Contributor

smuzaffar commented Aug 31, 2018

@fwyzard , aren't we going to miss the updates already merged in $CMSSW_BRANCH branch? I thought that running git read-tree -mu HEAD after the creation of from-$CMSSW_TAG branch was needed to get the already merged PRs?

@fwyzard
Copy link
Contributor Author

fwyzard commented Aug 31, 2018

As far as I can tell, git read-tree -mu HEAD is only needed to update the list of checked out files when we change the sparse checkout.

Doing

git checkout $CMSSW_TAG -b from-$CMSSW_TAG

should be equivalent to

git branch from-$CMSSW_TAG $CMSSW_TAG
git symbolic-ref HEAD refs/heads/from-$CMSSW_TAG
git reset --hard $CMSSW_TAG

but simpler.

What do you mean by

the updates already merged in $CMSSW_BRANCH branch?

@smuzaffar
Copy link
Contributor

@fwyzard , see the cms-bot message here cms-sw/cmssw#24429 (comment) ?

@fwyzard
Copy link
Contributor Author

fwyzard commented Sep 1, 2018 via email

@smuzaffar
Copy link
Contributor

I mean the extra merge commits on top of IB. My only concern is that, after your changes, are we still going to get these extra commits (if any) while testing PRs?

@fwyzard
Copy link
Contributor Author

fwyzard commented Sep 1, 2018

I guess you can give it a try before merging ?

On the other hand, git-cms-init creates a branch that points to the release tag - anything on top should be explicitly requested.

As for the release branch (e.g. CMSSW_10_3_X) I always assumed that git-cms-init would create it and leave it pointing to the same commit the release, not the HEAD.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants