{"action":"created","issue":{"url":"https://api.github.com/repos/trilbymedia/grav-plugin-git-sync/issues/98","repository_url":"https://api.github.com/repos/trilbymedia/grav-plugin-git-sync","labels_url":"https://api.github.com/repos/trilbymedia/grav-plugin-git-sync/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/trilbymedia/grav-plugin-git-sync/issues/98/comments","events_url":"https://api.github.com/repos/trilbymedia/grav-plugin-git-sync/issues/98/events","html_url":"https://github.com/trilbymedia/grav-plugin-git-sync/issues/98","id":330364019,"node_id":"MDU6SXNzdWUzMzAzNjQwMTk=","number":98,"title":"Local Branch and Remote Branch mislabeled","user":{"login":"1aurabrown","id":3171662,"node_id":"MDQ6VXNlcjMxNzE2NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/3171662?v=4","gravatar_id":"","url":"https://api.github.com/users/1aurabrown","html_url":"https://github.com/1aurabrown","followers_url":"https://api.github.com/users/1aurabrown/followers","following_url":"https://api.github.com/users/1aurabrown/following{/other_user}","gists_url":"https://api.github.com/users/1aurabrown/gists{/gist_id}","starred_url":"https://api.github.com/users/1aurabrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1aurabrown/subscriptions","organizations_url":"https://api.github.com/users/1aurabrown/orgs","repos_url":"https://api.github.com/users/1aurabrown/repos","events_url":"https://api.github.com/users/1aurabrown/events{/privacy}","received_events_url":"https://api.github.com/users/1aurabrown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-06-07T17:19:11Z","updated_at":"2018-06-07T19:19:17Z","closed_at":null,"author_association":"NONE","body":"Unless I misunderstand what 'Local' and 'Remote' refer to in the plugin settings, I believe that in the Plugin settings interface, Local Branch actually affects which branch on github.com is used for syncing, and Remote Branch refers to the branch on the server. I discovered this because I wanted to sync the production instance of my app with a branch in the repo called 'production' and sync the staging app with master. Entering this according to the labels resulted in an error stating that the remote branch at my repot on github could not be found. However when I inverted the entries, it worked. I certainly don't have a local branch on heroku called 'production', and I definitely do on github. I havent looked at the code, but it seems obvious that the branch names are getting pulled from the wrong fields/the fields are mislabeled.\r\n\r\n![screen shot 2018-06-07 at 7 14 33 pm](https://user-images.githubusercontent.com/3171662/41115367-90858ede-6a87-11e8-82dc-72636f8e5bad.png)\r\n"},"comment":{"url":"https://api.github.com/repos/trilbymedia/grav-plugin-git-sync/issues/comments/395534850","html_url":"https://github.com/trilbymedia/grav-plugin-git-sync/issues/98#issuecomment-395534850","issue_url":"https://api.github.com/repos/trilbymedia/grav-plugin-git-sync/issues/98","id":395534850,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NTUzNDg1MA==","user":{"login":"w00fz","id":11734,"node_id":"MDQ6VXNlcjExNzM0","avatar_url":"https://avatars3.githubusercontent.com/u/11734?v=4","gravatar_id":"","url":"https://api.github.com/users/w00fz","html_url":"https://github.com/w00fz","followers_url":"https://api.github.com/users/w00fz/followers","following_url":"https://api.github.com/users/w00fz/following{/other_user}","gists_url":"https://api.github.com/users/w00fz/gists{/gist_id}","starred_url":"https://api.github.com/users/w00fz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/w00fz/subscriptions","organizations_url":"https://api.github.com/users/w00fz/orgs","repos_url":"https://api.github.com/users/w00fz/repos","events_url":"https://api.github.com/users/w00fz/events{/privacy}","received_events_url":"https://api.github.com/users/w00fz/received_events","type":"User","site_admin":false},"created_at":"2018-06-07T19:19:16Z","updated_at":"2018-06-07T19:19:16Z","author_association":"MEMBER","body":"You can use `master`. Master is just another branch, the point is that you need to setup gitsync to match both the remote and local branching you have.\r\nUsually this is `master`, `origin`, `master`. I guess I'm trying to understand how your setup is because it's not entirely clear to me.\r\n\r\nI'm going to shoot a few questions your way:\r\n\r\n1. Heroku has the Grav installation with GitSync installed, correct?\r\n2. You checked out your repository which is now the `user` folder under the Grav installation, what is the branch setup in there? `master` or `production`?\r\n3. Github is where all your codebase is, including all the branches, do you have both `master` and `production` branches there?\r\n4. When you go in Grav Admin and save a page change, where are you expecting it to go to? `master` or `production`?\r\n\r\nAlso just so it is clear:\r\nHeroku = Local \r\nGithub = Remote\r\n\r\nEven though from both yours and mine perspective they are both remote. But they are local and remote from Grav / GitSync perspective."}}
{"actor":{"display_login":"w00fz"}}