https://github.com/git/git
Revision 54440e154f33678a80ea9f77085730b81a5e9446 authored by Brian Harring on 03 January 2012, 13:46:03 UTC, committed by Junio C Hamano on 03 January 2012, 20:13:28 UTC
git-repo if interupted at the exact wrong time will generate zero
length bundles- literal empty files.  git-repo is wrong here, but
git fetch shouldn't effectively spin loop if pointed at a zero
length bundle.

Signed-off-by: Brian Harring <ferringb@chromium.org>
Helped-by: Johannes Sixt
Helped-by: Nguyen Thai Ngoc Duy
Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f3f778d
Raw File
Tip revision: 54440e154f33678a80ea9f77085730b81a5e9446 authored by Brian Harring on 03 January 2012, 13:46:03 UTC
fix hang in git fetch if pointed at a 0 length bundle
Tip revision: 54440e1
advice.h
#ifndef ADVICE_H
#define ADVICE_H

#include "git-compat-util.h"

extern int advice_push_nonfastforward;
extern int advice_status_hints;
extern int advice_commit_before_merge;
extern int advice_resolve_conflict;
extern int advice_implicit_identity;
extern int advice_detached_head;

int git_default_advice_config(const char *var, const char *value);
void advise(const char *advice, ...);
int error_resolve_conflict(const char *me);
extern void NORETURN die_resolve_conflict(const char *me);

#endif /* ADVICE_H */
back to top