Skip to content

Commit

Permalink
rultor: Add rultor configuration
Browse files Browse the repository at this point in the history
This will allow us to merge with a simple `@rultor merge` from
collaborators. It will prohibit any non fastforward merge.
  • Loading branch information
sils committed Jun 17, 2015
1 parent d8bcd6d commit b9d0a64
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .misc/fail_if_HEAD_is_merge.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

if [[ "$(git log --merges HEAD^..)" == "" ]]; then
exit 0
else
echo "Not possible to fastforward! Please rebase!"
exit 1
fi
3 changes: 3 additions & 0 deletions .rultor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
merge:
script:
- bash .misc/fail_if_HEAD_is_merge.sh

0 comments on commit b9d0a64

Please sign in to comment.