Skip to content

Commit

Permalink
Merge branch 'maint-1.5.4' into maint
Browse files Browse the repository at this point in the history
* maint-1.5.4:
  cvsimport: always pass user data to "system" as a list
  fix reflog approxidate parsing bug
  • Loading branch information
Junio C Hamano committed Apr 30, 2008
2 parents 7b7f39e + b3bb5f7 commit 30c0312
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion git-cvsimport.perl
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ sub commit {
waitpid($pid,0);
die "Error running git-commit-tree: $?\n" if $?;

system("git-update-ref $remote/$branch $cid") == 0
system('git-update-ref', "$remote/$branch", $cid) == 0
or die "Cannot write branch $branch for update: $!\n";

if ($tag) {
Expand Down
7 changes: 5 additions & 2 deletions sha1_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,11 @@ static int get_sha1_basic(const char *str, int len, unsigned char *sha1)
}
if (0 <= nth)
at_time = 0;
else
at_time = approxidate(str + at + 2);
else {
char *tmp = xstrndup(str + at + 2, reflog_len);
at_time = approxidate(tmp);
free(tmp);
}
if (read_ref_at(real_ref, at_time, nth, sha1, NULL,
&co_time, &co_tz, &co_cnt)) {
if (at_time)
Expand Down

0 comments on commit 30c0312

Please sign in to comment.