-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Switching git branches does not work #271
Comments
Also it would be good to add tag/commit support. i.e. allow |
Here I try to switch from release branch to develop branch. Nothing happens. ~/projects/coala/mobans> python3 -m moban
git checkout -b fudge-develop-branch
Updating pypi-mobans...
Already up to date.
Updating package_manager...
warning: redirecting to https://gitlab.com/coala/package_manager.git/
Already up to date.
Updating Fudge...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 10 (delta 2), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (10/10), done.
From https://github.com/Badgerati/Fudge
bc5b152..7e33cbd develop -> origin/develop
Already up to date.
Updating python-appveyor-demo...
Already up to date.
Updating PowerShell-DevOps...
Already up to date.
Updating dbatools...
Already up to date.
Updating gitignore...
Already up to date.
Updating artwork...
Already up to date.
Updating coalaCSS...
Already up to date.
No templating
Copying /home/jayvdb/.moban/repos/Fudge/src/Fudge.ps1 to assets/fudge/Fudge.ps1
Copying /home/jayvdb/.moban/repos/Fudge/src/Modules/FudgeTools.psm1 to assets/fudge/Modules/FudgeTools.psm1
Copied 2 files.
Everything is up to date!
jayvdb@linux-lwww:~/projects/coala/mobans> git checkout -b fudge-develop-branch
M .moban.yaml
M assets/fudge/Fudge.ps1
M assets/fudge/Modules/FudgeTools.psm1
Switched to a new branch 'fudge-develop-branch'
jayvdb@linux-lwww:~/projects/coala/mobans> git diff
───────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ STDIN
───────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ diff --git a/.moban.yaml b/.moban.yaml
2 │ index 290d2b5..5744bbf 100644
3 │ --- a/.moban.yaml
4 │ +++ b/.moban.yaml
5 │ @@ -22,7 +22,7 @@ requires:
6 │ - https://gitlab.com/coala/package_manager
7 │ - type: git
8 │ url: https://github.com/Badgerati/Fudge
9 │ - branch: release
10 │ + branch: develop
11 │ - https://github.com/ogrisel/python-appveyor-demo
12 │ - https://github.com/MathieuBuisson/PowerShell-DevOps
13 │ - type: git
───────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
jayvdb@linux-lwww:~/projects/coala/mobans> cd /home/jayvdb/.moban/repos/Fudge/
jayvdb@linux-lwww:~/.moban/repos/Fudge> git status
On branch release
Your branch is up to date with 'origin/release'.
nothing to commit, working tree clean |
chfw
added a commit
that referenced
this issue
Jun 28, 2019
chfw
added a commit
that referenced
this issue
Jul 6, 2019
* ✨ support git branch change. #271 * 💄 format code * 🔬 unit test for git branch change * 🚀 manual test pass * ✨ support git checkout reference and git clone --reference * 📚 update docs * bump the version * 💚 make flake8 happy * 🐛 fix linting process
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Using branches other than the default branch seems to be a bit problematic, especially switching branches after the default branch has already been used.
The text was updated successfully, but these errors were encountered: