summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4191e80)
raw | patch | inline | side by side (parent: 4191e80)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 17 Apr 2009 22:18:01 +0000 (00:18 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 18 Apr 2009 04:05:49 +0000 (21:05 -0700) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c | patch | blob | history |
diff --git a/unpack-trees.c b/unpack-trees.c
index 6847c2d966c5e1d0299b21682d6fef2637329071..e4eb8fa3afc7ad895ba925701ee3c6881b29bd91 100644 (file)
--- a/unpack-trees.c
+++ b/unpack-trees.c
cnt = 0;
}
- git_attr_set_direction(GIT_ATTR_CHECKOUT, &o->result);
+ if (o->update)
+ git_attr_set_direction(GIT_ATTR_CHECKOUT, &o->result);
for (i = 0; i < index->cache_nr; i++) {
struct cache_entry *ce = index->cache[i];
}
}
stop_progress(&progress);
- git_attr_set_direction(GIT_ATTR_CHECKIN, NULL);
+ if (o->update)
+ git_attr_set_direction(GIT_ATTR_CHECKIN, NULL);
return errs != 0;
}