Commit 8150b36
committed
NO-JIRA: Handle upstream file deletions gracefully in restore-upstream step
When a file listed in restore-upstream is deleted in upstream, git
checkout --theirs fails as there is no upstream version to restore.
The step now checks each file's conflict status individually and runs
git rm for files deleted upstream (UD) instead of erroring out.
Signed-off-by: Jayapriya Pai <janantha@redhat.com>1 parent ac78325 commit 8150b36
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
146 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
147 | 158 | | |
148 | 159 | | |
149 | 160 | | |
| |||
0 commit comments