Skip to main content
17-Peridot
September 26, 2020
Solved

ThingWorx source control with git clean & smudge report error

  • September 26, 2020
  • 2 replies
  • 1191 views

Hi, 

I'm referring the article to config git : 

https://www.ptc.com/en/support/article/CS267770

 

I've followed the last section "Updating ThingWorx with Import of a Project from Git" to config the clean and smudge,  but  run git add / git status report the error below,  the replace command doesn't work.  

 

sed: no input files 
error: external filter 'sed -i 's/lastModifiedDate=[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9]-[0-9][0-9]:[0-9][0-9]/lastModifiedDate=/g'' failed 4 
error: external filter 'sed -i 's/lastModifiedDate=[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9].[0-9][0-9][0-9]-[0-9][0-9]:[0-9][0-9]/lastModifiedDate=/g'' failed 

 

could someone help on it ? 

 

Regards,

Sean

Best answer by Jimwang

I contacted Sean and the issue was resolved with the below suggestion:

git config filter.thingworx.clean "sed -e 's/lastModifiedDate=\".*$/lastModifiedDate=\"\"/g'"

2 replies

Jimwang16-PearlAnswer
16-Pearl
October 14, 2020

I contacted Sean and the issue was resolved with the below suggestion:

git config filter.thingworx.clean "sed -e 's/lastModifiedDate=\".*$/lastModifiedDate=\"\"/g'"

Support
October 16, 2020

Hi @seanccc.

 

Since the solution has been provided, please mark the appropriate response as the Accepted Solution for the benefit of others with the same question.

 

Thank you for your participation in our community!

 

Regards.

 

--Sharon