summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dd71836)
raw | patch | inline | side by side (parent: dd71836)
author | Brandon Casey <casey@nrlssc.navy.mil> | |
Wed, 12 Nov 2008 17:59:06 +0000 (11:59 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 12 Nov 2008 18:28:13 +0000 (10:28 -0800) |
When repack is called with either the -a or -A option, the user has
requested to repack all objects including those referenced by the
alternates mechanism. Currently, if there are no local packs without
.keep files, then repack will call pack-objects with the
'--unpacked --incremental' options which causes it to exclude alternate
packed objects. So, remove this fallback.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
requested to repack all objects including those referenced by the
alternates mechanism. Currently, if there are no local packs without
.keep files, then repack will call pack-objects with the
'--unpacked --incremental' options which causes it to exclude alternate
packed objects. So, remove this fallback.
Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-repack.sh | patch | blob | history |
diff --git a/git-repack.sh b/git-repack.sh
index 8bb22014b92720c0b8b9df922801d6436c639ffb..4d313d136e64678b99179b2e1dce7a1beaa36d04 100755 (executable)
--- a/git-repack.sh
+++ b/git-repack.sh
existing="$existing $e"
fi
done
- fi
- if test -z "$args"
- then
- args='--unpacked --incremental'
- elif test -n "$unpack_unreachable"
- then
- args="$args $unpack_unreachable"
+ if test -n "$args" -a -n "$unpack_unreachable"
+ then
+ args="$args $unpack_unreachable"
+ fi
fi
;;
esac