Skip to content

Commit

Permalink
Fix not getting untracked files
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 18, 2023
1 parent 2ec343b commit 7e7fe35
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions bin/pkg-status
6 changes: 3 additions & 3 deletions libexec/peek.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

set -e

if ! d=$(git rev-parse --show-toplevel 2>/dev/null); then
echo "tea.xyz/brewkit: error: cwd is not a git repo" >&2
if ! d="$(git rev-parse --show-toplevel 2>/dev/null)"; then
echo "tea.xyz/brewkit: error: cwd is not inside a git repo" >&2
exit 1
fi

Expand All @@ -21,7 +21,7 @@ fi

# sadly we seemingly need to reference origin/main
DIVERGENCE_SHA="$(git merge-base HEAD origin/main)"
CHANGED_FILES="$(git diff --name-only "$DIVERGENCE_SHA")"
CHANGED_FILES="$(git diff --name-only "$DIVERGENCE_SHA") $(git status --untracked-files)"

for CHANGED_FILE in $CHANGED_FILES; do
PROJECT=$(echo "$CHANGED_FILE" | sed -n 's#projects/\(.*\)/package\.yml$#\1#p')
Expand Down

0 comments on commit 7e7fe35

Please sign in to comment.