{"action":"created","issue":{"url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/348","repository_url":"https://api.github.com/repos/ingydotnet/git-subrepo","labels_url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/348/labels{/name}","comments_url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/348/comments","events_url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/348/events","html_url":"https://github.com/ingydotnet/git-subrepo/issues/348","id":301164141,"number":348,"title":"fatal: Not a valid object name: ''.","user":{"login":"brianjmurrell","id":559317,"avatar_url":"https://avatars3.githubusercontent.com/u/559317?v=4","gravatar_id":"","url":"https://api.github.com/users/brianjmurrell","html_url":"https://github.com/brianjmurrell","followers_url":"https://api.github.com/users/brianjmurrell/followers","following_url":"https://api.github.com/users/brianjmurrell/following{/other_user}","gists_url":"https://api.github.com/users/brianjmurrell/gists{/gist_id}","starred_url":"https://api.github.com/users/brianjmurrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianjmurrell/subscriptions","organizations_url":"https://api.github.com/users/brianjmurrell/orgs","repos_url":"https://api.github.com/users/brianjmurrell/repos","events_url":"https://api.github.com/users/brianjmurrell/events{/privacy}","received_events_url":"https://api.github.com/users/brianjmurrell/received_events","type":"User","site_admin":false},"labels":[{"id":68545248,"url":"https://api.github.com/repos/ingydotnet/git-subrepo/labels/Question","name":"Question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-28T20:05:58Z","updated_at":"2018-03-01T09:47:48Z","closed_at":null,"author_association":"NONE","body":"So, per #345 and #346 I'm trying some pretty simple workflows with [release/0.4.0](https://github.com/ingydotnet/git-subrepo/tree/release/0.4.0) and still seem to still be running into some problems.\r\n\r\nI did a `git subrep clone` with 0.4.0 and then subsequently the subrepo I cloned got a new commit pushed to it so I thought it would be simple to get that new code into my subrepo:\r\n\r\n```\r\n$ git subrepo -v pull include\r\n* Assert that working copy is clean: /home/brian/iml/python-django\r\n* Check for worktree with branch subrepo/include\r\n  * Fetch the upstream: git@github.com:intel-hpdd/module-tools.git (master).\r\n  * Get the upstream subrepo HEAD commit.\r\n  * Create ref 'refs/subrepo/include/fetch'.\r\n* Deleting old 'subrepo/include' branch.\r\n* Remove worktree: \r\n* Create subrepo branch 'subrepo/include'.\r\n  * Check if the 'subrepo/include' branch already exists.\r\n  * Subrepo parent: d9025bcbee964fa14385a69d83f3986e29964105\r\n  * Create new commits with parents into the subrepo fetch\r\n  * Create branch 'subrepo/include' for this new commit set .\r\ngit-subrepo: Command failed: 'git branch subrepo/include '.\r\nfatal: Not a valid object name: ''.\r\n```\r\n\r\nBut as you can see, not so much.  What am I doing wrong?"},"comment":{"url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/comments/369537173","html_url":"https://github.com/ingydotnet/git-subrepo/issues/348#issuecomment-369537173","issue_url":"https://api.github.com/repos/ingydotnet/git-subrepo/issues/348","id":369537173,"user":{"login":"grimmySwe","id":6480514,"avatar_url":"https://avatars0.githubusercontent.com/u/6480514?v=4","gravatar_id":"","url":"https://api.github.com/users/grimmySwe","html_url":"https://github.com/grimmySwe","followers_url":"https://api.github.com/users/grimmySwe/followers","following_url":"https://api.github.com/users/grimmySwe/following{/other_user}","gists_url":"https://api.github.com/users/grimmySwe/gists{/gist_id}","starred_url":"https://api.github.com/users/grimmySwe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grimmySwe/subscriptions","organizations_url":"https://api.github.com/users/grimmySwe/orgs","repos_url":"https://api.github.com/users/grimmySwe/repos","events_url":"https://api.github.com/users/grimmySwe/events{/privacy}","received_events_url":"https://api.github.com/users/grimmySwe/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T09:47:47Z","updated_at":"2018-03-01T09:47:47Z","author_association":"COLLABORATOR","body":"From the log it looks like you don't get any commits to work on. Most probable cause is that the ```git rev-list --reverse --ancestry-path \"$subrepo_parent..HEAD\"``` command returns an empty list.\r\n\r\nCan you try to ```git rev-list --reverse --ancestry-path d9025bcbee964fa14385a69d83f3986e29964105..HEAD``` in your main repo for the current branch? \r\n\r\nIt can be a fact that you have done some rebase that the d9025bcbee964fa14385a69d83f3986e29964105 is no longer part of your current history.\r\n\r\nIf that is the case, you might need to reclone the subrepo if you have no local changes.\r\n\r\nI have a work in progress branch where there is a \"-s\" squash flag for this case, then you ignore previous history and only care about the last parent."}}
{"actor":{"display_login":"grimmySwe"}}