Add amend, use repo dir environment variable