Skip to content

Commit

Permalink
Merge branch 'js/cvs'
Browse files Browse the repository at this point in the history
* js/cvs:
  cvsserver: imitate git-update-ref when committing
  • Loading branch information
Junio C Hamano committed Jul 28, 2006
2 parents 205be1e + cadbcf2 commit 922819c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-cvsserver.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1142,9 +1142,7 @@ sub req_ci
exit;
}

open FILE, ">", "$ENV{GIT_DIR}refs/heads/$state->{module}";
print FILE $commithash;
close FILE;
print LOCKFILE $commithash;

$updater->update();

Expand All @@ -1171,7 +1169,9 @@ sub req_ci
}

close LOCKFILE;
unlink($lockfile);
my $reffile = "$ENV{GIT_DIR}refs/heads/$state->{module}";
unlink($reffile);
rename($lockfile, $reffile);
chdir "/";

print "ok\n";
Expand Down

0 comments on commit 922819c

Please sign in to comment.