Friday, July 30, 2010

Still struggling with cmake/git

  cd CMake
  git checkout master
  git pull
  git checkout -b fix-issue-9611
  cp ~/tmp/cmake-2.8.2/Modules/FindJNI.cmake Modules/FindJNI.cmake
  git add --  Modules/FindJNI.cmake
  git commit -m"BUG: 0009611 Fix Arch independent FindJNI.cmake on Linux to support Sun Java, OpenJDK, Kaffe and GCJ paths. Based on patch from debian"
  git checkout -b next origin/next
  git checkout next
  git pull
  git merge  fix-issue-9611
  git push
Counting objects: 15, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 1.58 KiB, done.
Total 8 (delta 6), reused 0 (delta 0)
----------------------------------------------------------------------
commit 6a3d7d46 has an invalid message:
  the first line must not be more than 78 characters
commit message is:
BUG: 0009611 Fix Arch independent FindJNI.cmake on Linux to support Sun Java, OpenJDK, Kaffe and GCJ paths. Based on patch from debian
----------------------------------------------------------------------
error: hook declined to update refs/heads/next
To git@cmake.org:cmake.git
 ! [remote rejected] next -> next (hook declined)
error: failed to push some refs to 'git@cmake.org:cmake.git'

1 comment:

Unknown said...

Looks like an easy solution is to setup hooks locally:

http://www.cmake.org/Wiki/Git/Hooks