Answers.Body: <p>You will need to </p>
  
  <ul>
  <li><p>Go into your extension dir and remove the civivolunteer code that was
  installed with your buildkit.</p>
  
  <p>Then git clone their master (to get the latest).</p>
  
  <p>Then go to the Manage Extensions page to check if there are any
  prompts for database updates.</p>
  
  <p>Then disable a small other extension and re-enable it. Or just enable
  another new extension via the Manage Extensions page. This will
  trigger managed entity updates.</p></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-07T21:22:15.623Z
Answers.Text: Karin thanks so much. So if the update is in a different branch then of course I should `git clone` that branch.
Answers.UserDisplayName: Joe McLaughlin
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-07T23:54:52.763Z
Answers.Text: Right - here’s an example of how to check out a different branch from eg webform civicrm module: https://civicrm.stackexchange.com/questions/31818/where-do-i-find-webform-civicrm-module-for-d8
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-07T23:55:21.953Z
Answers.Text: Note the —branch flag
Answers.UserDisplayName: KarinG - Semper IT
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-12T09:46:21.947Z
Answers.Text: Karin, yup, thanks so much!
Answers.UserDisplayName: Joe McLaughlin
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-10-07T13:53:15.380Z
Answers.LastActivityDate: 2019-10-07T16:11:47.190Z
Answers.LastEditDate: 2019-10-07T16:11:47.190Z
Answers.UserDisplayName: KarinG - Semper IT
Body: <p>I'm running Civi 5.19.alpha1 with Drupal locally. I have CiviVolunteer 4.7.31-2.3.1, which is the latest release listed on GitHub, from June 2018. </p>
  
  <p>I want to update to the latest stuff in the repo, which I believe fixes a bug. </p>
  
  <p>I don't see a way to do that in the Admin UI. </p>
  
  <p>I've tried </p>
  
  <p><code>git pull https://github.com/civicrm/org.civicrm.volunteer.git</code> </p>
  
  <p>from my ext directory at</p>
  
  <p><code>~/buildkit/build/drupal-clean/web/sites/default/files/civicrm/ext</code></p>
  
  <p>and I get </p>
  
  <p><code>fatal: refusing to merge unrelated histories</code>. </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-07T13:04:52.743Z
Comments.Text: What is the output of `git remote -v`?
Comments.UserDisplayName: Demerit
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-10-07T18:36:28.517Z
Comments.Text: Oh yeah :) . So I did not have a remote. I did this: `git remote add -m -f civivolunteer https://github.com/civicrm/org.civicrm.volunteer.git` then this - `git fetch civivolunteer` then I get this: `warning: no common commits
  remote: Enumerating objects: 6, done.
  remote: Counting objects: 100% (6/6), done.
  remote: Compressing objects: 100% (6/6), done.
  remote: Total 11179 (delta 0), reused 6 (delta 0), pack-reused 11173
  Receiving objects: 100% (11179/11179), 2.99 MiB | 591.00 KiB/s, done.
  Resolving deltas: 100% (5911/5911), done.
  From https://github.com/civicrm/org.civicrm.volu`... etc
Comments.UserDisplayName: Joe McLaughlin
Tags: <drupal><extension><civivolunteer><upgrade>
Title: How do I update CiviVolunteer, from the UI or from the command line?
ThreadText: # How do I update CiviVolunteer, from the UI or from the command line?
  
  (Asked by: username_0 on 2019-10-07)
  
  I'm running Civi 5.19.alpha1 with Drupal locally. I have CiviVolunteer 4.7.31-2.3.1, which is the latest release listed on GitHub, from June 2018.
  
  I want to update to the latest stuff in the repo, which I believe fixes a bug.
  
  I don't see a way to do that in the Admin UI.
  
  I've tried
  
  `git pull https://github.com/civicrm/org.civicrm.volunteer.git`
  
  from my ext directory at
  
  `~/buildkit/build/drupal-clean/web/sites/default/files/civicrm/ext`
  
  and I get
  
  `fatal: refusing to merge unrelated histories`.
  
  **Tags:** drupal, extension, civivolunteer, upgrade
  
  > **Comments:**
  > **username_1**: What is the output of `git remote -v`?  
  > **username_0**: Oh yeah :) . So I did not have a remote. I did this: `git remote add -m -f civivolunteer https://github.com/civicrm/org.civicrm.volunteer.git` then this - `git fetch civivolunteer` then I get this: `warning: no common commits remote: Enumerating objects: 6, done. remote: Counting objects: 100% (6/6), done. remote: Compressing objects: 100% (6/6), done. remote: Total 11179 (delta 0), reused 6 (delta 0), pack-reused 11173 Receiving objects: 100% (11179/11179), 2.99 MiB | 591.00 KiB/s, done. Resolving deltas: 100% (5911/5911), done. From https://github.com/civicrm/org.civicrm.volu`... etc  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2019-10-07. Score: 2
  
  You will need to
  
  * Go into your extension dir and remove the civivolunteer code that was
    installed with your buildkit.
  
    Then git clone their master (to get the latest).
  
    Then go to the Manage Extensions page to check if there are any
    prompts for database updates.
  
    Then disable a small other extension and re-enable it. Or just enable
    another new extension via the Manage Extensions page. This will
    trigger managed entity updates.
  
  > **Comments:**
  > **username_0**: Karin thanks so much. So if the update is in a different branch then of course I should `git clone` that branch.  
  > **username_2**: Right - here’s an example of how to check out a different branch from eg webform civicrm module: https://civicrm.stackexchange.com/questions/31818/where-do-i-find-webform-civicrm-module-for-d8  
  > **username_2**: Note the —branch flag  
  > **username_0**: Karin, yup, thanks so much!  
  
  ---
  
  