Skip to content
New issue

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

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

Already on GitHub? # to your account

Scripts with On event setting "AfterCheckout" or "BeforeCheckout" do not activate on revision checkout #4006

Closed
richardboone opened this issue Sep 18, 2017 · 4 comments
Assignees
Milestone

Comments

@richardboone
Copy link

richardboone commented Sep 18, 2017

I needed to edit the way git extensions updates submodules on checkout because some of my submodules have been moved to a different location and I don't have the ability to edit .gitmodules on older commits of the repositories. I turned off the update submodules on checkout setting and inserted two scripts to update submodules the way I needed and set one to activate AfterCheckout and the other to activate BeforeCheckout. While these scripts activate the way they should when checking out a branch or when pulling, they do not activate at all when checking out a revision.

Using Git Extensions version 2.50.01.
Using Windows 7 Enterprise.

@jbialobr jbialobr added this to the 2.51 milestone Sep 18, 2017
@RussKie
Copy link
Member

RussKie commented Nov 26, 2017

could you share scripts, so I could try to repro the issue?

@richardboone
Copy link
Author

Triggering on BeforeCheckout:
git submodule init

Triggering on AfterCheckout:
git submodule update --recursive

@RussKie RussKie self-assigned this Dec 11, 2017
RussKie added a commit to RussKie/gitextensions that referenced this issue Dec 12, 2017
Scripts "AfterCheckout" or "BeforeCheckout" are now run on revision checkout
Fixes gitextensions#4006
@RussKie
Copy link
Member

RussKie commented Dec 12, 2017

@richardboone
Copy link
Author

Scripts run as expected. Issue is fixed. Thanks.

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

No branches or pull requests

3 participants