Using GIT repository definition to checkout a branch
Fetch URL: ssh://git@....
Branch Name: develop
Destination Path: app
Then build run and shows this in log:
Checking out revision 'cb8e8b2c8b12356f74ebad5ef8de1723ca64aecd' of repository 'GitApp'...
But if you go this directory after a build git doesn't show correct branch or details.
C:\...app>git branch --list
* (HEAD detached at cb8e8b2)
master
C:\...\app>git status
HEAD detached at cb8e8b2
Untracked files:
(use "git add <file>..." to include in what will be committed)
.qbcache/
nothing added to commit but untracked files present (use "git add" to track)
Manually switching to branch via checkout, status seems correct:
C:\...\app>git checkout develop
Branch develop set up to track remote branch develop from origin.
Switched to a new branch 'develop'
C:\...\appl>git status
On branch develop
Your branch is up-to-date with 'origin/develop'.
Untracked files:
(use "git add <file>..." to include in what will be committed)
.qbcache/
nothing added to commit but untracked files present (use "git add" to track)
We make git calls manually via ant scripts and to use this we have to first do a git checkout develop
before our ant scripts can do git commit/push.
BTW: I added .qbcache to .gitingore so this won't show up anymore.
Any insight, suggestions?