Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git command error when running in docker #680

Open
vonDassendorf opened this issue Jun 10, 2024 · 0 comments
Open

git command error when running in docker #680

vonDassendorf opened this issue Jun 10, 2024 · 0 comments

Comments

@vonDassendorf
Copy link

vonDassendorf commented Jun 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant