-
Notifications
You must be signed in to change notification settings - Fork 305
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repo: Add a "force copy" flag to checkout #804
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
|
||
set -euo pipefail | ||
|
||
echo "1..65" | ||
echo "1..66" | ||
|
||
$CMD_PREFIX ostree --version > version.yaml | ||
python -c 'import yaml; yaml.safe_load(open("version.yaml"))' | ||
|
@@ -41,6 +41,7 @@ fi | |
validate_checkout_basic() { | ||
(cd $1; | ||
assert_has_file firstfile | ||
assert_not_streq $(stat -c '%h' firstfile) 1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Interesting, this is failing in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wait, I read this backwards. The fact that it's failing means that it is copying rather than hardlinking, which is what we want in user-mode without There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, this only works in bare right now. This whole suite really needs rewriting. |
||
assert_has_file baz/cow | ||
assert_file_has_content baz/cow moo | ||
assert_has_file baz/deeper/ohyeah | ||
|
@@ -78,6 +79,14 @@ fi | |
fi | ||
echo "ok checkout -H" | ||
|
||
rm checkout-test2 -rf | ||
$OSTREE checkout -C test2 checkout-test2 | ||
for file in firstfile baz/cow baz/alink; do | ||
assert_streq $(stat -c '%h' checkout-test2/$file) 1 | ||
done | ||
|
||
echo "ok checkout -C" | ||
|
||
$OSTREE rev-parse test2 | ||
$OSTREE rev-parse 'test2^' | ||
$OSTREE rev-parse 'test2^^' 2>/dev/null && fatal "rev-parse test2^^ unexpectedly succeeded!" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be checked at the API level too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done ⬇️