refuse to release from not master
[p5sagit/Distar.git] / lib / Distar.pm
index 2e3aba7..2dedc9f 100644 (file)
@@ -61,6 +61,7 @@ sub run_preflight {
   }
 
   for (scalar `git status`) {
+    /^# On branch master/ || die "Not on master. EEEK";
     /Your branch is (behind|ahead of)/ && die "Not synced with upstream";
   }