Skip to content

Instantly share code, notes, and snippets.

@bleuse
Last active December 23, 2015 06:59
Show Gist options
  • Select an option

  • Save bleuse/6597494 to your computer and use it in GitHub Desktop.

Select an option

Save bleuse/6597494 to your computer and use it in GitHub Desktop.
require.git.working_copy does not function with detached HEAD
[<remote>] Executing task '<task>'
[<remote>] run: git clone --quiet <remote_url> <path>
[<remote>] run: git checkout <branch>
[<remote>] out: Note: checking out '<branch>'.
[<remote>] out:
[<remote>] out: You are in 'detached HEAD' state. You can look around, make experimental
[<remote>] out: changes and commit them, and you can discard any commits you make in this
[<remote>] out: state without impacting any branches by performing another checkout.
[<remote>] out:
[<remote>] out: If you want to create a new branch to retain commits you create, you may
[<remote>] out: do so (now or later) by using -b with the checkout command again. Example:
[<remote>] out:
[<remote>] out: git checkout -b new_branch_name
[<remote>] out:
[<remote>] out: HEAD is now at <commit hash> <commit message>
[<remote>] out:
Done.
Disconnecting from <remote>... done.
[<remote>] Executing task '<task>'
[<remote>] run: git fetch
[<remote>] run: git checkout <branch>
[<remote>] out: HEAD is now at <commit hash> <commit message>
[<remote>] out:
[<remote>] run: git pull
[<remote>] out: You are not currently on a branch, so I cannot use any
[<remote>] out: 'branch.<branchname>.merge' in your configuration file.
[<remote>] out: Please specify which remote branch you want to use on the command
[<remote>] out: line and try again (e.g. 'git pull <repository> <refspec>').
[<remote>] out: See git-pull(1) for details.
[<remote>] out:
Fatal error: run() received nonzero return code 1 while executing!
Requested: git pull
Executed: /bin/bash -l -c "cd <path> && git pull "
Aborting.
Disconnecting from <remote>... done.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment