You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2021/12/27 22:00:00 UTC

[jira] [Closed] (SCM-973) GitCheckInCommandNoBranchTest fails with Git 2.34.0+

     [ https://issues.apache.org/jira/browse/SCM-973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed SCM-973.
------------------------------
    Resolution: Fixed

Fixed with [ceb0e24ffa6095195ab7acd34b7aa5c807105537|https://gitbox.apache.org/repos/asf?p=maven-scm.git;a=commit;h=ceb0e24ffa6095195ab7acd34b7aa5c807105537] and with [3743e166a63a4a117c33a3a289bb897551647744|https://gitbox.apache.org/repos/asf?p=maven-scm.git;a=commit;h=3743e166a63a4a117c33a3a289bb897551647744] for {{maven-scm-1.x}} branch.

> GitCheckInCommandNoBranchTest fails with Git 2.34.0+
> ----------------------------------------------------
>
>                 Key: SCM-973
>                 URL: https://issues.apache.org/jira/browse/SCM-973
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-gitexe
>    Affects Versions: 1.12.0
>            Reporter: Michael Osipov
>            Assignee: Michael Osipov
>            Priority: Major
>             Fix For: 2.0.0-M1, 1.12.1
>
>
> Tests running on FreeBSD and Windows 10 gives me:
> {noformat}
> ----------------------------------------------------------------------
> Provider message
> ----------------------------------------------------------------------
> The git-push command failed.
> ----------------------------------------------------------------------
> ----------------------------------------------------------------------
> Command output
> ----------------------------------------------------------------------
> remote: fatal: bad object refs/empty.txt
> fatal: bad object refs/empty.txt
> To file:///var/mosipov/Projekte/maven-scm/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/target/git_copy/
>  ! [remote rejected] master -> master (missing necessary objects)
> error: Fehler beim Versenden einiger Referenzen nach 'file:///var/mosipov/Projekte/maven-scm/maven-scm-providers/maven-scm-providers-git/maven-scm-provider-gitexe/target/git_copy/'
> ----------------------------------------------------------------------
> {noformat}
> The reason is in Git 2.34.0:
> {noformat}
>  * The ref iteration code used to optionally allow dangling refs to be
>    shown, which has been tightened up.
> {noformat}
> Source: https://github.com/git/git/blob/2ae0a9cb8298185a94e5998086f380a355dd8907/Documentation/RelNotes/2.34.0.txt#L68-L69
> We simply need to replace those broken refs with {{.gitkeep}} to retain dirs.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)