[cmake-developers] Git fun

Richard Wackerbarth richard at NFSNet.org
Mon Dec 5 17:57:03 EST 2011


James,

You have not defined "stage" as the nickname for the remote repository.

If you set it up with  `git remote add stage git at cmake.org:stage/cmake.git`, then your push syntax should work.
Alternately, `git push git at cmake.org:stage/cmake.git CUDAv3.2PathChanges` would push using the full name.

Richard

On Dec 5, 2011, at 4:41 PM, James Bigler wrote:

> I used to be able to push directly to next, because I'm a Module maintainer.  Now I get this:
> 
> $ git push origin next
> Enter passphrase for key '/Users/jbigler/.ssh/id_rsa': 
> Counting objects: 12, done.
> Delta compression using up to 2 threads.
> Compressing objects: 100% (7/7), done.
> Writing objects: 100% (7/7), 1001 bytes, done.
> Total 7 (delta 5), reused 0 (delta 0)
> ----------------------------------------------------------------------
> James Bigler <jamesbigler at gmail.com> may not push directly to this repository.
> Use the CMake Topic Stage to merge your topic:
>   http://www.cmake.org/Wiki/CMake/Git#Topic_Stage
> ----------------------------------------------------------------------
> error: hook declined to update refs/heads/next
> To git at cmake.org:cmake.git
>  ! [remote rejected] next -> next (hook declined)
> error: failed to push some refs to 'git at cmake.org:cmake.git'
> 
> 
> OK..... So I tried to do a stage merge:
> 
> $ git checkout CUDAv3.2PathChanges
> Switched to branch 'CUDAv3.2PathChanges'
> 
> $ git push stage HEAD
> fatal: 'stage' does not appear to be a git repository
> fatal: The remote end hung up unexpectedly
> 
> 
> $ git branch
> * CUDAv3.2PathChanges
>   master
>   next
>   topics/CudaRTEmuLibraryForCUDA30
>   topics/FindCUDA-allow-g3
>   topics/FixCudaVersionAfterFirstRun
> 
> Can anyone help with with my ignorance of Git?  The only thing I used Git for is CMake and I just don't use it enough to learn all the nooks and crannies of this tool.
> 
> Thanks,
> James
> 
> --
> 
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers




More information about the cmake-developers mailing list