Merge branch 'ls/travis-submitting-patches'
[gitweb.git] / builtin / receive-pack.c
index 220a899b960a9ddc39ab1e582847ec87d9adad6f..a744437b5876171250d4731d181f7b30e5444187 100644 (file)
@@ -1084,13 +1084,13 @@ static void check_aliased_update(struct command *cmd, struct string_list *list)
        if (!(flag & REF_ISSYMREF))
                return;
 
-       dst_name = strip_namespace(dst_name);
        if (!dst_name) {
                rp_error("refusing update to broken symref '%s'", cmd->ref_name);
                cmd->skip_update = 1;
                cmd->error_string = "broken symref";
                return;
        }
+       dst_name = strip_namespace(dst_name);
 
        if ((item = string_list_lookup(list, dst_name)) == NULL)
                return;