refspec: convert valid_fetch_refspec to use parse_refspec
[gitweb.git] / sha1-file.c
index 64a5bd7d8788d7e94e28a70dcb34f35756234920..46072602fff00bc08960f08568e8bdb84255c60e 100644 (file)
@@ -142,7 +142,7 @@ static int get_conv_flags(unsigned flags)
        if (flags & HASH_RENORMALIZE)
                return CONV_EOL_RENORMALIZE;
        else if (flags & HASH_WRITE_OBJECT)
-         return global_conv_flags_eol;
+               return global_conv_flags_eol | CONV_WRITE_OBJECT;
        else
                return 0;
 }