3699: allow script_version to be a branch
authorTim Pierce <twp@curoverse.com>
Fri, 17 Oct 2014 19:15:29 +0000 (15:15 -0400)
committerTim Pierce <twp@curoverse.com>
Fri, 17 Oct 2014 19:15:29 +0000 (15:15 -0400)
commitb81c434401a503746ec54e53bf7058cf42beaa2f
tree07f9d059d3f82bc7eaff533106a78a85b308dd4f
parent36bf949652cf8544f6176f77e07273cd3bf9df77
3699: allow script_version to be a branch

Fix copy_git_repo to behave properly when the source script_version
refers to a branch on the source repository:

* clone the source repo with git clone --bare (ensuring that local
  branch refs are created for all remote branch refs)
* name the destination branch for "repository_script_version" to prevent
  merge conflicts, if we copy different branches on the source
  repository to the same destination repository
sdk/python/arvados/commands/copy.py