Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
git pull issue. Please advice
#1
Hello,
Would like to ask for a help/advice, as I am not so familiar with Github version control.

Tried to update Corebos using "git pull corebos master". Somehow this ended with MERGE_MSG file opened in edit mode and I was unable to exit from it correctly, so terminated.
After this retied git pull and it showed the message that unfinished process is active, so I have deleted MERGE_MSG file and retried git pull.
Now system shows warning bellow:
---------------------
[root@dsrl corebos]# git pull corebos master
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:

git config pull.rebase false # merge (the default strategy)
git config pull.rebase true # rebase
git config pull.ff only # fast-forward only

You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.

From https://github.com/tsolucio/corebos
* branch master -> FETCH_HEAD
error: Your local changes to the following files would be overwritten by merge:
.github/SECURITY.md Popup.php Smarty/templates/AddProductToPriceBooks.tpl Smarty/templates/AddProductsToPriceBook.tpl Smarty/templates/AdvanceFilter.tpl Smarty/templates/BrowserVariables.tpl Smarty/templates/Components/Components.tpl Smarty/templates/Components/ComponentsJS.tpl Smarty/templates/Components/DetailViewPirvNext.tpl Smarty/templates/Components/Kanban/KanbanHeader.tpl Smarty/templates/Components/MasterDetail/GridBody.tpl Smarty/templates/Components/MasterDetail/GridHeader.tpl Smarty/templates/Components/Paint/index.tpl Smarty/templates/Components/Photo2Doc/index.tpl Smarty/templates/ComposeEmail.tpl Smarty/templates/CustomFieldMapping.tpl Smarty/templates/CustomView.tpl Smarty/templates/DetailView.tpl Smarty/templates/DetailViewUI.tpl Smarty/templates/EditViewUI.tpl Smarty/templates/EmailDetailView.tpl Smarty/templates/Header.tpl Smarty/templates/Inventory/EditViewUI.tpl Smarty/templates/KanbanView.tpl Smarty/templates/ListView.tpl Smarty/templates/ListViewButtons.tpl Smarty/templates/ListViewCustomButtons.tpl Smarty/templates/ListViewEntries.tpl Smarty/templates/ListViewSearch.tpl Smarty/templates/ListViewTUIGrid.tpl Smarty/templates/LoginHeader.tpl Smarty/templates/MailScanner/MailScannerEdit.tpl Smarty/templates/MailScanner/MailScannerRule.tpl Smarty/templates/MailScanner/MailScannerRuleEdit.tpl Smarty/templates/MassCreateGridView.tpl Smarty/templates/MergeFields.tpl Smarty/templates/PivotView.tpl Smarty/templates/Popup.tpl Smarty/templates/PrintEmail.tpl Smarty/templates/PrintReport.tpl Smarty/templates/RelatedListNew.tpl Smarty/templates/RelatedLists.tpl Smarty/templates/ReportContents.tpl Smarty/templates/RolePopup.tpl Smarty/templates/SelectEmail.tpl Smarty/templates/Settings.tpl Smarty/templates/Settings/LayoutBlockEntries.tpl Smarty/templates/Settings/LayoutBlockList.tpl Smarty/templates/Settings/OrderRelatedList.tpl Smarty/templates/TagCloudDisplay.tpl Smarty/templates/com_vtiger_workflow/ActionMenu.tpl Smarty/templates/com_vtiger_workflow/EditTask.tpl Smarty/templates/com_vtiger_workflow/ListWorkflows.tpl Smarty/templates/com_vtiger_workflow/TaskSummaryList.tpl Smarty/templates/com_vtiger_workflow/taskforms/Many2ManyRelation.tpl Smarty/templates/modules/Documents/dropzone.tpl Smarty/templates/modules/Import/Import_Step4.tpl Smarty/templates/modules/Mobile/Header.tpl Smarty/templates/modules/Mobile/Login.tpl Smarty/templates/modules/Mobile/PanelMenu.tpl Smarty/templates/modules/ModComments/widgets/DetailViewBlockComment.tpl Smarty/templates/modules/SMSNotifier/SMSNotifierSelectWizard.tpl Smarty/templates/modules/SMSNotifier/SMSNotifierServerNotAvailable.tpl Smarty/templates/modules/Utilities/clickhouse.tpl Smarty/templates/modules/Utilities/facebook.tpl Smarty/templates/modules/Utilities/mautic.tpl Smarty/templates/modules/Vtiger/Settings.tpl Smarty/templates/modules/Vtiger/phpversionfail.tpl Smarty/templates/modules/VtigerBackup/BackupServer.tpl Smarty/templates/modules/Webforms/DetailView.tpl Smarty/templates/modules/Webforms/EditView.tpl Smarty/templates/modules/Webforms/FieldsView.tpl Smarty/templates/modules/Webforms/HTMLView.tpl Smarty/templates/modules/Webforms/ListView.tpl Smarty/templates/modules/cbLoginHistory/index.tpl Smarty/templates/modules/cbMap/GenMapHeader.tpl Smarty/templates/modules/cbMap/MassUpsertGrid.tpl Smarty/templates/modules/cbQuestion/Builder.tpl Smarty/templates/modules/cbQuestion/Grid.tpl Smarty/templates/modules/evvtgendoc/BasicSettings.tpl Smarty/templates/showSetOfFields.tpl build/HelperScripts/addModComments.php build/HelperScripts/addPhoto2Document.php build/HelperScripts/addQuickRelatedList.php build/HelperScripts/bettersafe.sh build/HelperScripts/checkFieldUsage.php build/HelperScripts/coreBOSEventsLoader.php build/HelperScripts/deleteModule.php build/HelperScripts/evalwf.php build/HelperScripts/export_language_filesystem.php build/HelperScripts/export_package_database.php build/HelperScripts/export_package_filesystem.php build/HelperScripts/importpricebookcsv.php build/HelperScripts
-------------------

Please advice how to proceed.
Should I use git reset -- hard and retry git pull, or do something else.
With Best regards
Svermar
Reply
#2
try first `git commit` to see if you can proceed with the pull and finish it

if that doesn't work, try a `git merge --abort` to see if you can undo the pull and then do it correctly

Let me know how it goes
Joe
TSolucio
Reply
#3
Dear Joe,
Thanks for taking care.
It looks 'git commit' went without errors and the attached file was generated. Is this OK?
what I should do next?

svemar


Attached Files
.zip   COMMIT_EDITMSG.zip (Size: 22.6 KB / Downloads: 0)
Reply
#4
Hi, tried 'git pull' once more with the results below:

[root@dsrl corebos]# git pull corebos master
warning: Pulling without specifying how to reconcile divergent branches is
discouraged. You can squelch this message by running one of the following
commands sometime before your next pull:

git config pull.rebase false # merge (the default strategy)
git config pull.rebase true # rebase
git config pull.ff only # fast-forward only

You can replace "git config" with "git config --global" to set a default
preference for all repositories. You can also pass --rebase, --no-rebase,
or --ff-only on the command line to override the configured default per
invocation.

remote: Enumerating objects: 28, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 28 (delta 20), reused 26 (delta 20), pack-reused 0
Unpacking objects: 100% (28/28), 7.54 KiB | 701.00 KiB/s, done.
From https://github.com/tsolucio/corebos
* branch master -> FETCH_HEAD
a6ed4400e..90f9206d4 master -> corebos/master
Auto-merging vtlib/Vtiger/Cron.php
CONFLICT (add/add): Merge conflict in vendor/stefangabos/zebra_session/Zebra_Session.php
Auto-merging vendor/stefangabos/zebra_session/Zebra_Session.php
Auto-merging modules/com_vtiger_workflow/language/es_es.fndefs.php
Auto-merging modules/com_vtiger_workflow/language/en_us.fndefs.php
Auto-merging modules/com_vtiger_workflow/expression_functions/application.php
Auto-merging modules/com_vtiger_workflow/expression_engine/VTExpressionsManager.inc
Auto-merging modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc
CONFLICT (rename/rename): Rename "modules/Services/AddServiceToPriceBooks.php"->"modules/TCTotals/FindDuplicateRecords.php" in branch "HEAD" rename "modules/Services/AddServiceToPriceBooks.php"->"modules/pricebookproductrel/FindDuplicateRecords.php" in "90f9206d4c083105b35fbf8963b6b7b23ae302c9"
Auto-merging modules/TCTotals/FindDuplicateRecords.php and modules/pricebookproductrel/FindDuplicateRecords.php, both renamed from modules/Services/AddServiceToPriceBooks.php
Auto-merging modules/pricebookproductrel/FindDuplicateRecords.php
Auto-merging modules/AutoNumberPrefix/FindDuplicateRecords.php
Auto-merging include/Webservices/Logout.php
CONFLICT (content): Merge conflict in include/Webservices/Logout.php
Automatic merge failed; fix conflicts and then commit the result.
---------------
Advice, please
Reply
#5
Hi Joe,

As I was unable to login to the Corebos anymore, so
I executed git merge --abort as You recommended.
After this I am able to login to Corebos, but I saw some visual changes (font, icon design).

Please also find attached outputs of git pull, git status and git log commands.
Please advice what to do in order to regain the ability to update the system.

Thanks a lot.
Svemar
Reply
#6
Hi again,
I have loaded updates and Applied them. This went without errors.
But after this I cant create any of Quotes/SO/Inv/PO.
Getting the following errors:
Fatal error: Uncaught Error: Call to a member function getData() on bool in /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc:337 Stack trace: #0 /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc(284): VTFieldExpressionEvaluater->exec(Object(VTExpressionTreeNode)) #1 /crm/corebos/modules/cbMap/processmap/Mapping.php(127): VTFieldExpressionEvaluater->evaluate(false) #2 /crm/corebos/modules/cbMap/cbMap.php(177): Mapping->processMap(Array) #3 /crm/corebos/include/utils/CommonUtils.php(1863): cbMap->__call('Mapping', Array) #4 /crm/corebos/modules/PurchaseOrder/EditView.php(145): setObjectValuesFromRequest(Object(PurchaseOrder)) #5 /crm/corebos/index.php(471): include_once('/crm/corebos/mo...') #6 {main} thrown in /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc on line 337
Fatal error: Uncaught Error: Call to a member function getData() on bool in /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc:337 Stack trace: #0 /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc(284): VTFieldExpressionEvaluater->exec(Object(VTExpressionTreeNode)) #1 /crm/corebos/modules/cbMap/processmap/Mapping.php(127): VTFieldExpressionEvaluater->evaluate(false) #2 /crm/corebos/modules/cbMap/cbMap.php(177): Mapping->processMap(Array) #3 /crm/corebos/include/utils/CommonUtils.php(1863): cbMap->__call('Mapping', Array) #4 /crm/corebos/modules/Quotes/EditView.php(125): setObjectValuesFromRequest(Object(Quotes)) #5 /crm/corebos/index.php(471): include_once('/crm/corebos/mo...') #6 {main} thrown in /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc on line 337
Fatal error: Uncaught Error: Call to a member function getData() on bool in /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc:337 Stack trace: #0 /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc(284): VTFieldExpressionEvaluater->exec(Object(VTExpressionTreeNode)) #1 /crm/corebos/modules/cbMap/processmap/Mapping.php(127): VTFieldExpressionEvaluater->evaluate(false) #2 /crm/corebos/modules/cbMap/cbMap.php(177): Mapping->processMap(Array) #3 /crm/corebos/include/utils/CommonUtils.php(1863): cbMap->__call('Mapping', Array) #4 /crm/corebos/modules/Invoice/EditView.php(247): setObjectValuesFromRequest(Object(Invoice)) #5 /crm/corebos/index.php(471): include_once('/crm/corebos/mo...') #6 {main} thrown in /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc on line 337
Fatal error: Uncaught Error: Call to a member function getData() on bool in /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc:337 Stack trace: #0 /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc(284): VTFieldExpressionEvaluater->exec(Object(VTExpressionTreeNode)) #1 /crm/corebos/modules/cbMap/processmap/Mapping.php(127): VTFieldExpressionEvaluater->evaluate(false) #2 /crm/corebos/modules/cbMap/cbMap.php(177): Mapping->processMap(Array) #3 /crm/corebos/include/utils/CommonUtils.php(1863): cbMap->__call('Mapping', Array) #4 /crm/corebos/modules/SalesOrder/EditView.php(207): setObjectValuesFromRequest(Object(SalesOrder)) #5 /crm/corebos/index.php(471): include_once('/crm/corebos/mo...') #6 {main} thrown in /crm/corebos/modules/com_vtiger_workflow/expression_engine/VTExpressionEvaluater.inc on line 337

Thanks for Your advices.
Svemar
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)