Skip to main content
Sep 26, 2020 3:50 PM UTC
Solved

ThingWorx source control with git clean & smudge report error

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

JimwangAnswer
Oct 14, 2020 1:36 AM UTC

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

JimwangAnswer
Oct 14, 2020 1:36 AM UTC

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

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

Oct 16, 2020 1:44 PM UTC

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