Bug #1965
Updated by Henning Blohm about 8 years ago
Currently it is not possible to run gitcr on a tag. When trying with a tag
As observed by Tracekey
<pre><code>
02/14 11:45:48 [1]...entRepositoryImpl [800]: Using GIT-CR: component:com.zfabrik.boot.config/scenarioRepository,repo:com.zfabrik.boot.config/scenarioRepository,prio:550,mode:strict,checkDepth:1073741823,roots:{=fs-root:/disk_1/tracekey-pharmaceutical/z2-base.core/work/repos/com_zfabrik_boot_config_scenarioRe$
02/14 11:45:54 [1]...entRepositoryImpl [800]: Pulled deltas within 5566msec from GIT-CR: component:com.zfabrik.boot.config/scenarioRepository,repo:com.zfabrik.boot.config/scenarioRepository,prio:550,mode:strict,checkDepth:1073741823,roots:{=fs-root:/disk_1/tracekey-pharmaceutical/z2-base.core/work/repos/com_z$
02/14 11:45:54 [1]...entRepositoryImpl [800]: Branch has changed! Will switch GIT-CR: component:com.zfabrik.boot.config/scenarioRepository,repo:com.zfabrik.boot.config/scenarioRepository,prio:550,mode:strict,checkDepth:1073741823,roots:{=fs-root:/disk_1/tracekey-pharmaceutical/z2-base.core/work/repos/com_zfab$
02/14 11:45:54 [1]...entRepositoryImpl [900]: WARNING: Updating GIT-CR: component:com.zfabrik.boot.config/scenarioRepository,repo:com.zfabrik.boot.config/scenarioRepository,prio:550,mode:strict,checkDepth:1073741823,roots:{=fs-root:/disk_1/tracekey-pharmaceutical/z2-base.core/work/repos/com_zfabrik_boot_confi$
02/14 11:45:54 [1]...entRepositoryImpl [900]: WARNING: java.io.IOException: No such branch '2017.1-demo' inside Repository[/home/tracey/tracekey-pharmaceutical/z2-base.core/work/repos/com_zfabrik_boot_config_scenarioRepository/git/.git]!
02/14 11:45:59 [1]...entRepositoryImpl [800]: WARNING: 'dev.tracekey.com' IS NOT reachable!
02/14 11:45:59 [1]...entRepositoryImpl [800]: WARNING: 'pharmaceutical' will be ignored because it's an optional repository or running in relaxed mode
</code></pre>
Idea:
* instead of creating local tracking branches to support gitcr for branches, uses directly the commit from the remote branch or tag. This way we can achieve a general way of addressing commits to check out for the local clone in z2.