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

« back to all changes in this revision

Viewing changes to builtin-fsck.c

  • Committer: Package Import Robot
  • Author(s): Gerrit Pape
  • Date: 2007-05-01 08:59:06 UTC
  • mfrom: (1.1.15)
  • Revision ID: package-import@ubuntu.com-20070501085906-n1e5qzoc00wvlzt3
Tags: 1:1.5.1.3-1
* new upstream point release.
  * git-add tried to optimize by finding common leading directories
    across its arguments but botched, causing very confused behaviour
    (closes: #420671).
  * Documentation/git-reset.txt: suggest git commit --amend in example
    (closes: #420112).
  * unofficial rpm.spec file shipped with git was letting ETC_GITCONFIG
    set to /usr/etc/gitconfig.  Tweak the official Makefile to make it
    harder for distro people to make the same mistake, by setting the
    variable to /etc/gitconfig if prefix is set to /usr (closes:
    #420675).
* debian/changelog.upstream: upstream changes taken from mailing list
  announcement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
{
219
219
        int retval;
220
220
        int has_full_path = 0;
 
221
        int has_empty_name = 0;
221
222
        int has_zero_pad = 0;
222
223
        int has_bad_modes = 0;
223
224
        int has_dup_entries = 0;
241
242
 
242
243
                if (strchr(name, '/'))
243
244
                        has_full_path = 1;
 
245
                if (!*name)
 
246
                        has_empty_name = 1;
244
247
                has_zero_pad |= *(char *)desc.buffer == '0';
245
248
                update_tree_entry(&desc);
246
249
 
289
292
        if (has_full_path) {
290
293
                objwarning(&item->object, "contains full pathnames");
291
294
        }
 
295
        if (has_empty_name) {
 
296
                objwarning(&item->object, "contains empty pathname");
 
297
        }
292
298
        if (has_zero_pad) {
293
299
                objwarning(&item->object, "contains zero-padded file modes");
294
300
        }