refs.h: rename the action_on_err constants
[gitweb.git] / builtin / update-ref.c
index 02b5f950e34a3122f55f8aba35f3fb116cc57e06..f6345e5251c07ce085c2ec846e1023e7e5cf9510 100644 (file)
@@ -282,7 +282,8 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
                if (end_null)
                        line_termination = '\0';
                update_refs_stdin();
-               return update_refs(msg, updates, updates_count, DIE_ON_ERR);
+               return update_refs(msg, updates, updates_count,
+                                  UPDATE_REFS_DIE_ON_ERR);
        }
 
        if (end_null)
@@ -314,5 +315,5 @@ int cmd_update_ref(int argc, const char **argv, const char *prefix)
                return delete_ref(refname, oldval ? oldsha1 : NULL, flags);
        else
                return update_ref(msg, refname, sha1, oldval ? oldsha1 : NULL,
-                                 flags, DIE_ON_ERR);
+                                 flags, UPDATE_REFS_DIE_ON_ERR);
 }