Skip to content
This repository was archived by the owner on Dec 19, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/wit/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,8 @@ def resolve(self, download=False):
used_commit = pkg.revision
fs_commit = pkg.repo.get_commit('HEAD')
if used_commit != fs_commit:
log.warn("using '{}' manifest instead of checked-out version of '{}'".format(
pkg.id(), pkg.name))
log.warn("using '{}' manifest instead of currently checked-out version in '{}'"
.format(pkg.id(), pkg.name))
continue

if pkg.repo.modified_manifest():
Expand Down
6 changes: 3 additions & 3 deletions t/warn_manifest_changes.t
Original file line number Diff line number Diff line change
Expand Up @@ -33,22 +33,22 @@ wit add-pkg $foo_dir
output=$(wit update)
echo $output | grep "disregarding uncommitted changes"
check "initial wit update should not log uncommitted manifest warnings" [ $? -ne 0 ]
echo $output | grep "manifest instead of checked-out version"
echo $output | grep "manifest instead of currently checked-out version"
check "initial wit update should not log different manifest warnings" [ $? -ne 0 ]

rm foo/wit-manifest.json
output=$(wit update)
echo $output | grep "disregarding uncommitted changes"
check "initial wit update should log uncommitted manifest warnings" [ $? -eq 0 ]
echo $output | grep "manifest instead of checked-out version"
echo $output | grep "manifest instead of currently checked-out version"
check "initial wit update should not log different manifest warnings" [ $? -ne 0 ]

git -C foo add -A
git -C foo commit -m "remove manifest"
output=$(wit update)
echo $output | grep "disregarding uncommitted changes"
check "initial wit update should not log uncommitted manifest warnings" [ $? -ne 0 ]
echo $output | grep "manifest instead of checked-out version"
echo $output | grep "manifest instead of currently checked-out version"
check "initial wit update should log different manifest warnings" [ $? -eq 0 ]

set +x
Expand Down