[
https://issues.apache.org/jira/browse/SCM-875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963437#comment-17963437
]
ASF GitHub Bot commented on SCM-875:
------------------------------------
jira-importer opened a new issue, #1099:
URL: https://github.com/apache/maven-scm/issues/1099
**[Michael
Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o)**
opened
**[SCM-875](https://issues.apache.org/jira/browse/SCM-875?redirect=false)** and
commented
The `GitUpdateCommand` and its user `scm:update` always assume that we are
locally on `master` and it can be used for `log`, `pull`, etc.
It shouldn't assume any branch, but rely on what `HEAD` is pointing to.
---
**Affects:** 1.9.5
**Issue Links:**
- [SCM-818](https://issues.apache.org/jira/browse/SCM-818) Updating doesn't
work when in detached HEAD
(_**"is depended upon by"**_)
> GitUpdateCommand assumes master branch by default
> -------------------------------------------------
>
> Key: SCM-875
> URL: https://issues.apache.org/jira/browse/SCM-875
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Components: maven-scm-provider-gitexe
> Affects Versions: 1.9.5
> Reporter: Michael Osipov
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 1.10.0
>
>
> The {{GitUpdateCommand}} and its user {{scm:update}} always assume that we
> are locally on {{master}} and it can be used for {{log}}, {{pull}}, etc.
> It shouldn't assume any branch, but rely on what {{HEAD}} is pointing to.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)