Skip to content

Commit

Permalink
Used patch command instead of git apply
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnaldo committed Nov 25, 2022
1 parent f1b9430 commit aa44c7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/scala/esmeta/util/Git.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ abstract class Git(path: String, shortHashLength: Int = 16) { self =>
executeCmd(s"git checkout $target", path)

/** apply git patch */
def applyPatch(patch: String): Unit = executeCmd(s"git apply $patch", path)
def applyPatch(patch: String): Unit = executeCmd(s"patch -p1 < $patch", path)

/** clean modified content */
def clean: Unit = executeCmd(s"git checkout -- .", path)
Expand Down

0 comments on commit aa44c7e

Please sign in to comment.