| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1463,6 +1463,12 @@ | |||
| 1463 | 1463 | }, | |
| 1464 | 1464 | "git_repository_message": { | |
| 1465 | 1465 | "ignore": true | |
| 1466 | + }, | ||
| 1467 | + "git_repository_set_head": { | ||
| 1468 | + "isAsync": true, | ||
| 1469 | + "return": { | ||
| 1470 | + "isErrorCode": true | ||
| 1471 | + } | ||
| 1466 | 1472 | } | |
| 1467 | 1473 | } | |
| 1468 | 1474 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -807,8 +807,11 @@ Repository.prototype.checkoutBranch = function(branch, opts) { | |||
| 807 | 807 | ||
| 808 | 808 | var name = ref.name(); | |
| 809 | 809 | ||
| 810 | - repo.setHead(name, repo.defaultSignature(), "Switch HEAD to " + name); | ||
| 811 | - | ||
| 810 | + return repo.setHead(name, | ||
| 811 | + repo.defaultSignature(), | ||
| 812 | + "Switch HEAD to " + name); | ||
| 813 | + }) | ||
| 814 | + .then(function() { | ||
| 812 | 815 | return Checkout.head(repo, opts); | |
| 813 | 816 | }); | |
| 814 | 817 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments