mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
Merge branch 'master' of git://repo.or.cz/alt-git
This commit is contained in:
@@ -593,7 +593,7 @@ SEE ALSO
|
||||
linkgit:gittutorial[7], linkgit:gittutorial-2[7],
|
||||
linkgit:giteveryday[7], linkgit:gitcvs-migration[7],
|
||||
linkgit:gitglossary[7], linkgit:gitcore-tutorial[7],
|
||||
link:user-manual.html[The Git User's Manual]
|
||||
linkgit:gitcli[7], link:user-manual.html[The Git User's Manual]
|
||||
|
||||
GIT
|
||||
---
|
||||
|
||||
@@ -204,7 +204,7 @@ static void describe(const char *arg, int last_one)
|
||||
*/
|
||||
display_name(n);
|
||||
if (longformat)
|
||||
show_suffix(0, n->tag->tagged->sha1);
|
||||
show_suffix(0, n->tag ? n->tag->tagged->sha1 : sha1);
|
||||
printf("\n");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -379,19 +379,19 @@ static void export_marks(char *file)
|
||||
if (!f)
|
||||
error("Unable to open marks file %s for writing", file);
|
||||
|
||||
for (i = 0; i < idnums.size; ++i) {
|
||||
deco++;
|
||||
if (deco && deco->base && deco->base->type == 1) {
|
||||
for (i = 0; i < idnums.size; i++) {
|
||||
if (deco->base && deco->base->type == 1) {
|
||||
mark = ptr_to_mark(deco->decoration);
|
||||
fprintf(f, ":%u %s\n", mark, sha1_to_hex(deco->base->sha1));
|
||||
}
|
||||
deco++;
|
||||
}
|
||||
|
||||
if (ferror(f) || fclose(f))
|
||||
error("Unable to write marks file %s.", file);
|
||||
}
|
||||
|
||||
static void import_marks(char * input_file)
|
||||
static void import_marks(char *input_file)
|
||||
{
|
||||
char line[512];
|
||||
FILE *f = fopen(input_file, "r");
|
||||
@@ -407,7 +407,7 @@ static void import_marks(char * input_file)
|
||||
line_end = strchr(line, '\n');
|
||||
if (line[0] != ':' || !line_end)
|
||||
die("corrupt mark line: %s", line);
|
||||
*line_end = 0;
|
||||
*line_end = '\0';
|
||||
|
||||
mark = strtoumax(line + 1, &mark_end, 10);
|
||||
if (!mark || mark_end == line + 1
|
||||
|
||||
@@ -309,7 +309,8 @@ done:
|
||||
}
|
||||
flushes--;
|
||||
}
|
||||
return retval;
|
||||
/* it is no error to fetch into a completely empty repo */
|
||||
return count ? retval : 0;
|
||||
}
|
||||
|
||||
static struct commit_list *complete;
|
||||
|
||||
@@ -37,10 +37,7 @@ static void grow_decoration(struct decoration *n)
|
||||
{
|
||||
int i;
|
||||
int old_size = n->size;
|
||||
struct object_decoration *old_hash;
|
||||
|
||||
old_size = n->size;
|
||||
old_hash = n->hash;
|
||||
struct object_decoration *old_hash = n->hash;
|
||||
|
||||
n->size = (old_size + 1000) * 3 / 2;
|
||||
n->hash = xcalloc(n->size, sizeof(struct object_decoration));
|
||||
|
||||
@@ -772,6 +772,7 @@ X-Mailer: git-send-email $gitversion
|
||||
if ($smtp->code == 220) {
|
||||
$smtp = Net::SMTP::SSL->start_SSL($smtp)
|
||||
or die "STARTTLS failed! ".$smtp->message;
|
||||
$smtp_encryption = '';
|
||||
} else {
|
||||
die "Server does not support STARTTLS! ".$smtp->message;
|
||||
}
|
||||
|
||||
@@ -139,4 +139,6 @@ check_describe "test1-lightweight-*" --tags --match="test1-*"
|
||||
|
||||
check_describe "test2-lightweight-*" --tags --match="test2-*"
|
||||
|
||||
check_describe "test2-lightweight-*" --long --tags --match="test2-*" HEAD^
|
||||
|
||||
test_done
|
||||
|
||||
Reference in New Issue
Block a user