You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
functioncheckOutCommit(repo,commit){console.log('Changing HEAD to ',commit.id());repo.setHeadDetached(commit.id(),repo.defaultSignature,"Checkout: HEAD "+commit.id());console.log('Checking out HEAD');returnGit.Checkout.head(repo,{checkoutStrategy: Git.Checkout.STRATEGY.FORCE});}
I get the following output
Changing HEAD to [Oid d1ef6ef21f21748b611e86514c4dfff07e0d8ff7]
Assertion failed: (handle->InternalFieldCount() > 0), function Unwrap, file /Users/johnh/.node-gyp/0.12.4/src/node_object_wrap.h, line 50.
While we are on it, was is the canonical way to check out on a particular tag in a detached state ? I tried the suggestions found on gitter and here