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

« back to all changes in this revision

Viewing changes to builtin-write-tree.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:
52
52
        if (prefix) {
53
53
                struct cache_tree *subtree =
54
54
                        cache_tree_find(active_cache_tree, prefix);
 
55
                if (!subtree)
 
56
                        die("git-write-tree: prefix %s not found", prefix);
55
57
                hashcpy(sha1, subtree->sha1);
56
58
        }
57
59
        else
70
72
        const char *prefix = NULL;
71
73
        unsigned char sha1[20];
72
74
 
 
75
        git_config(git_default_config);
73
76
        while (1 < argc) {
74
77
                const char *arg = argv[1];
75
78
                if (!strcmp(arg, "--missing-ok"))