~ubuntu-branches/ubuntu/intrepid/git-core/intrepid-security

« back to all changes in this revision

Viewing changes to builtin-fetch--tool.c

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-10-04 08:27:01 UTC
  • mfrom: (1.1.23)
  • Revision ID: package-import@ubuntu.com-20071004082701-rsd058ontoqz4i30
Tags: 1:1.5.3.4-1
new upstream point release (closes: #445188).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include "builtin.h"
1
2
#include "cache.h"
2
3
#include "refs.h"
3
4
#include "commit.h"
42
43
        if (!rla)
43
44
                rla = "(reflog update)";
44
45
        snprintf(msg, sizeof(msg), "%s: %s", rla, action);
45
 
        lock = lock_any_ref_for_update(refname, oldval);
 
46
        lock = lock_any_ref_for_update(refname, oldval, 0);
46
47
        if (!lock)
47
48
                return 1;
48
49
        if (write_ref_sha1(lock, sha1, msg) < 0)