Bug 1013064
Summary: | Pushing the first commit to an empty git repo (created using --from-code=empty) results in Git fatal error | ||
---|---|---|---|
Product: | OKD | Reporter: | Clayton Coleman <ccoleman> |
Component: | Containers | Assignee: | Jakub Hadvig <jhadvig> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 2.x | CC: | agoldste, bmeng, jhadvig |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2013-10-17 13:26:18 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Clayton Coleman
2013-09-27 18:27:15 UTC
Based on reported bug report i've updated the check for the branch in the openshift app repo. If the return value of the git ls-tree... is unsuccessful and returns value > 0 ( no branch is present ), the output is redirected to 2/dev/null, and no hot deploy is needed. Also when the app is created with empty repo and no initial (or other commits) are present, no hot deploy is needed. Pull Req.: https://github.com/openshift/origin-server/pull/3837 Hi Jakub, There were a few issues with the gear script relating to git pre/postreceive and marker files. The following PR incorporates fixes for this BZ as well as other items. https://github.com/openshift/origin-server/pull/3861 Checked on devenv_3891, issue has been fixed. $ git push origin master Counting objects: 3710, done. Compressing objects: 100% (3291/3291), done. Writing objects: 100% (3710/3710), 3.35 MiB | 891 KiB/s, done. Total 3710 (delta 63), reused 3710 (delta 63) remote: Stopping PHP cartridge remote: Syntax error on line 2 of /var/lib/openshift/5259037548d5f94ce3000179/php/configuration/etc/conf.d/openshift.conf: remote: DocumentRoot must be a directory remote: httpd (no pid file) not running remote: Building git ref 'master', commit d710f99 remote: Building PHP cartridge remote: Preparing build for deployment remote: Prepared deployment artifacts in /var/lib/openshift/5259037548d5f94ce3000179/app-deployments/2013-10-12_04-12-05.385 remote: Deployment id is 7530b76b remote: Activating deployment remote: remote: done. remote: ================================================== remote: Wiki-Admin login: admin remote: Wiki-Admin password: OpenShiftAdmin remote: Don't forget to change your wiki admin password! remote: ================================================== remote: Starting PHP cartridge remote: Result: success remote: Activation status: success remote: Deployment completed To ssh://5259037548d5f94ce3000179.rhcloud.com/~/git/php1.git/ * [new branch] master -> master After git push, the code added to the app, and app works well. |