Merge branch 'sg/t3020-typofix'
[gitweb.git] / credential-store.c
index f6925096ffa7e036b4e63f65ce372c596c9e1b70..00aea3aa304f2731da070c447f694591b3021bc9 100644 (file)
@@ -52,7 +52,7 @@ static void print_entry(struct credential *c)
 static void print_line(struct strbuf *buf)
 {
        strbuf_addch(buf, '\n');
-       write_or_die(credential_lock.fd, buf->buf, buf->len);
+       write_or_die(get_lock_file_fd(&credential_lock), buf->buf, buf->len);
 }
 
 static void rewrite_credential_file(const char *fn, struct credential *c,