Skip to content

git command error when running in docker #680

Open

Description

@vonDassendorf

I get these logs from the app container when running docker-compose up

app_1       |
app_1       |  [OK] Already at the latest version                            
app_1       |       ("Buddy\Repman\Migrations\Version20210531095502")        
app_1       |
app_1       |
app_1       |  [OK] The "async" transport was set up successfully.           
app_1       |
app_1       |  [OK] The "failed" transport was set up successfully.          
app_1       |
app_1       | 21:58:12 CRITICAL  [console] Error thrown while running command "repman:security:update-db". Message: "The command "'git' '--git-dir=.git' 'reset' '--hard' 'origin/master'" failed.\n\nExit Code: 128(Invalid exit argument)\n\nWorking directory: /app/var/security-advisories\n\nOutput:\n================\n\n\nError Output:\n================\nfatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.\nUse '--' to separate paths from revisions, like this:\n'git <command> [<revision>...] -- [<file>...]'\n" ["exception" => Symfony\Component\Process\Exception\ProcessFailedException { …},"command" => "repman:security:update-db","message" => """  The command "'git' '--git-dir=.git' 'reset' '--hard' 'origin/master'" failed.\n  \n  Exit Code: 128(Invalid exit argument)\n  \n  Working directory: /app/var/security-advisories\n  \n  Output:\n  ================\n  \n  \n  Error Output:\n  ================\n  fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.\n  Use '--' to separate paths from revisions, like this:\n  'git <command> [<revision>...] -- [<file>...]'\n  """]
app_1       |
app_1       | In SensioLabsSecurityChecker.php line 218:
app_1       |                                                                
app_1       |   The command "'git' '--git-dir=.git' 'reset' '--hard' 'origin/master'" faile
app_1       |   d.                                                           
app_1       |                                                                
app_1       |   Exit Code: 128(Invalid exit argument)                        
app_1       |                                                                
app_1       |   Working directory: /app/var/security-advisories              
app_1       |                                                                
app_1       |   Output:                                                      
app_1       |   ================                                             
app_1       |                                                                
app_1       |                                                                
app_1       |   Error Output:                                                
app_1       |   ================                                             
app_1       |   fatal: ambiguous argument 'origin/master': unknown revision or path not in
app_1       |   the working tree.                                            
app_1       |   Use '--' to separate paths from revisions, like this:        
app_1       |   'git <command> [<revision>...] -- [<file>...]'               
app_1       |                                                                
app_1       |
app_1       | repman:security:update-db
app_1       |

I have tried container versions 1.3.0-1.3.4 and 1.4.0 and this error seems to exist in 1.3.3, 1.3.4 and 1.4.0.
The other versions seems to have a namespace error.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions