Skip to content

Commit

Permalink
Fix using local changes in cli
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisses committed Mar 8, 2023
1 parent 3b5d11c commit 5cb4148
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nosana_node/pipeline.clj
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@
(-> (sh/sh "git"
"-C" dir
"status"
"--porcelain"
"--untracked-files" (if untracked-files? "yes" "no"))
"--porcelain")
:out
string/blank?
not))
Expand All @@ -151,7 +150,7 @@
(let [artifact (str dir "/.nos/artifacts/" artifact-name)
_ (io/make-parents artifact)
stash (cond
(and commit (has-local-git-changes? dir false))
(and (not commit) (has-local-git-changes? dir false))
(-> (sh/sh "git" "-C" dir "stash" "create")
:out
(string/replace "\n" ""))
Expand Down

0 comments on commit 5cb4148

Please sign in to comment.