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

Cow occasionally checks out the wrong branches #194

Open
maxime-rainville opened this issue Nov 26, 2020 · 0 comments
Open

Cow occasionally checks out the wrong branches #194

maxime-rainville opened this issue Nov 26, 2020 · 0 comments
Labels

Comments

@maxime-rainville
Copy link

maxime-rainville commented Nov 26, 2020

Occasionally cow checkout the wrong branch of some module for no apparent reason. When I did the 4.7.0-rc1 release I got the wrong branch of framework and admin. All the other modules were using the correct branches.

Until we figure out what is going on we can use this simple bash script to figure what branch is module is on.

#!/usr/bin/env bash
# Run this script from vendor/silverstripe
for f in *; do
    if [ -d "$f" ]; then
        BRANCH=`(cd $f; git rev-parse --abbrev-ref HEAD)`
        printf "%-20s   %s\n" $f $BRANCH
    fi
done
@Cheddam Cheddam changed the title cow occasionnaly checkout the wrong branches Cow occasionally checks out the wrong branches Nov 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants