refname_is_safe(): correct docstring
[gitweb.git] / refs / files-backend.c
index f9023939d5884e0f975d5997336313695e407ca1..be4ffdca243c7853b9863c0c19dadbf79b324aea 100644 (file)
@@ -2631,7 +2631,7 @@ static int files_rename_ref(struct ref_store *ref_store,
        if (!read_ref_full(newrefname, RESOLVE_REF_READING | RESOLVE_REF_NO_RECURSE,
                           sha1, NULL) &&
            delete_ref(newrefname, NULL, REF_NODEREF)) {
-               if (errno==EISDIR) {
+               if (errno == EISDIR) {
                        struct strbuf path = STRBUF_INIT;
                        int result;