{"thread":{"id":"30926","subject":"Git Submodule would not work. The push does not work","startedAt":"2012-06-28T22:54:15Z","lastAt":"2012-06-29T07:18:11Z","messageCount":3,"participants":["salmanmanekia","Carlos Martín Nieto"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"194419","messageId":"1340924055050-7562323.post@n2.nabble.com","threadId":"30926","inReplyTo":null,"subject":"Git Submodule would not work. The push does not work","fromName":"salmanmanekia","fromEmail":"salmanmanekia@gmail.com","sentAt":"2012-06-28T22:54:15Z","receivedAt":"2012-06-28T22:54:15Z","isPatch":false,"sender":{"key":"salmanmanekia@gmail.com","avatar":"https://gravatar.com/avatar/cc181fff4c6cf98fa58835dd38c7dba1793ae2ce1cc5dcb0a886a2681effb7b0?d=mp&s=160"},"body":"I have been trying to create a submodule in git After issuing the git\nsubmodule init i see the folders for the submodule. After that i add, commit\nand try to push those files in the master repo but it would not allow me to\ndo soo\n\nSalman@PC_HOME ~/git/breakit-web-app (master)\n$ git push origin master\nerror: refs/heads/master does not point to a valid object! \nCounting objects: 4, done.\nDelta compression using up to 2 threads.\nCompressing objects: 100% (3/3), done.\nWriting objects: 100% (3/3), 421 bytes, done.\nTotal 3 (delta 1), reused 0 (delta 0)\nremote: bb/acl: salmanmanekia is allowed. accepted payload.\nerror: Ref refs/heads/master is at 6a47a0fd398610a75bdab8976f842dc0efd89f86\nbut expected 00000000000000000000000000000000000000000\nremote: error: failed to lock refs/heads/master\n\nTo ssh://git@bitbucket.org/majuri/breakit-web-app.git\n! [remote rejected] master -> master (failed to lock)\nerror: failed to push some refs to\n'ssh://git@bitbucket.org/majuri/breakit-web-app.git'\n\n--\nView this message in context: http://git.661346.n2.nabble.com/Git-Submodule-would-not-work-The-push-does-not-work-tp7562323.html\nSent from the git mailing list archive at Nabble.com.\n"},{"id":"194423","messageId":"1340940970.21992.1.camel@centaur.cmartin.tk","threadId":"30926","inReplyTo":"1340924055050-7562323.post@n2.nabble.com","subject":"Re: Git Submodule would not work. The push does not work","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2012-06-29T03:36:10Z","receivedAt":"2012-06-29T03:36:10Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"On Thu, 2012-06-28 at 15:54 -0700, salmanmanekia wrote:\n> I have been trying to create a submodule in git After issuing the git\n> submodule init i see the folders for the submodule. After that i add, commit\n> and try to push those files in the master repo but it would not allow me to\n> do soo\n\nThis doesn't seem to be related to submodules.\n\n> \n> Salman@PC_HOME ~/git/breakit-web-app (master)\n> $ git push origin master\n> error: refs/heads/master does not point to a valid object! \n> Counting objects: 4, done.\n> Delta compression using up to 2 threads.\n> Compressing objects: 100% (3/3), done.\n> Writing objects: 100% (3/3), 421 bytes, done.\n> Total 3 (delta 1), reused 0 (delta 0)\n> remote: bb/acl: salmanmanekia is allowed. accepted payload.\n> error: Ref refs/heads/master is at 6a47a0fd398610a75bdab8976f842dc0efd89f86\n> but expected 00000000000000000000000000000000000000000\n> remote: error: failed to lock refs/heads/master\n> \n> To ssh://git@bitbucket.org/majuri/breakit-web-app.git\n> ! [remote rejected] master -> master (failed to lock)\n> error: failed to push some refs to\n> 'ssh://git@bitbucket.org/majuri/breakit-web-app.git'\n\nThere error messages come from a hook being run on the bitbucket\nservers. They're the only ones who can know what they mean and how to\nsolve it.\n\n   cmn\n"},{"id":"194424","messageId":"1340954291072-7562328.post@n2.nabble.com","threadId":"30926","inReplyTo":"1340940970.21992.1.camel@centaur.cmartin.tk","subject":"Re: Git Submodule would not work. The push does not work","fromName":"salmanmanekia","fromEmail":"salmanmanekia@gmail.com","sentAt":"2012-06-29T07:18:11Z","receivedAt":"2012-06-29T07:18:11Z","isPatch":false,"sender":{"key":"salmanmanekia@gmail.com","avatar":"https://gravatar.com/avatar/cc181fff4c6cf98fa58835dd38c7dba1793ae2ce1cc5dcb0a886a2681effb7b0?d=mp&s=160"},"body":"Thank you Carlos, I will ask my question at bitbucket forums. But can you\ntell me two things:\n1: How did you interpret that it was related to hook. Can you explain the\nerror a bit\n2: Am i creating the submodule correctly. Also, shall i create a new branch\nfor it and init the submoduel there or is it a good idea to do this in\nmaster.\n\n\n\n--\nView this message in context: http://git.661346.n2.nabble.com/Git-Submodule-would-not-work-The-push-does-not-work-tp7562323p7562328.html\nSent from the git mailing list archive at Nabble.com.\n"}]}