Skip to content

Instantly share code, notes, and snippets.

@rage-shadowman
Last active January 12, 2016 23:27
Show Gist options
  • Select an option

  • Save rage-shadowman/6471929 to your computer and use it in GitHub Desktop.

Select an option

Save rage-shadowman/6471929 to your computer and use it in GitHub Desktop.

Revisions

  1. rage-shadowman revised this gist Jan 12, 2016. No changes.
  2. rage-shadowman revised this gist Sep 7, 2013. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion pre-receive
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    . git-sh-setup
    read oldValue newValue refName
    if ! git log -1 $newValue | grep -q '^ git-svn-id: '
    if ! git log -1 $newValue | grep -q '^ git-svn-id: '
    then
    echo "Must not commit to Git unless already dcommitted to SVN!"
    exit 1
  3. rage-shadowman renamed this gist Sep 7, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. rage-shadowman revised this gist Sep 7, 2013. No changes.
  5. rage-shadowman created this gist Sep 7, 2013.
    9 changes: 9 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/sh

    . git-sh-setup
    read oldValue newValue refName
    if ! git log -1 $newValue | grep -q '^ git-svn-id: '
    then
    echo "Must not commit to Git unless already dcommitted to SVN!"
    exit 1
    fi