{"push_id":574225991,"size":1,"distinct_size":1,"ref":"refs/heads/remote_branches","head":"bcafbba31df4f59ab4c1c18f1f9a8276c435172e","before":"89243c9f2c740ac134c26ee4262c63dca9092a2f","commits":[{"sha":"bcafbba31df4f59ab4c1c18f1f9a8276c435172e","author":{"email":"387ba1943871e60965e6b44638a2f2e1ab9b8469@puppetlabs.com","name":"Colleen Murphy"},"message":"Fix remote branch checkout\n\nCurrently, the user can specify a branch other than master to make\nchanges to, and modulesync will attempt to pull updates from that\nbranch before starting work. This is a problem because if the branch\ndoes not exist remotely, the pull will fail.\n\nThis patch proposes the following workflow:\n\n- If the repo is being cloned for the first time, check out the\n  user-specified branch locally based on local master\n- If the repo exists locally and the user-specified branch exists\n  remotely, check out that branch locally and pull any changes from the\n  remote branch before starting work.\n- If the repo exists locally and the branch does not exist remotely,\n  create a new branch based on origin/master.","distinct":true,"url":"https://api.github.com/repos/cmurphy/modulesync/commits/bcafbba31df4f59ab4c1c18f1f9a8276c435172e"}]}