Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.9.4
-
None
Description
When calling scm:update in detached HEAD:
[INFO] Executing: /bin/sh -c cd '/path/to/project' && 'git' 'log' '-n1' '--date-order' 'master' [INFO] Working directory: /path/to/project [ERROR] Provider message: [ERROR] The git-log command failed. [ERROR] Command output: [ERROR] fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
When no ScmVersion is given, the plugin defaults to master (https://github.com/apache/maven-scm/blob/master/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/src/main/java/org/apache/maven/scm/provider/git/gitexe/command/update/GitUpdateCommand.java#L169), defaulting to HEAD would be better, no ?
Attachments
Issue Links
- depends upon
-
SCM-875 GitUpdateCommand assumes master branch by default
- Closed