If we receive no command line args, the pre-push hook is out of date. Bail.

This commit is contained in:
rubyist 2014-10-01 16:02:29 -04:00
parent 8a9d65a374
commit a0601f0fdd

@ -56,6 +56,11 @@ var (
func pushCommand(cmd *cobra.Command, args []string) {
var left, right string
if len(args) == 0 {
Print("The git media pre-push hook is out of date. Please run `git media update`")
os.Exit(1)
}
if useStdin {
refsData, err := ioutil.ReadAll(os.Stdin)
if err != nil {