open source is social v-it.org
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(init): replace dead-end hint with actionable guidance when outside git repo

+4 -2
+2 -1
src/cmd/init.js
··· 80 80 if (hasVitDir) { 81 81 console.log(`hint: run: ${name} init --beacon <canonical-git-url>`); 82 82 } else { 83 - console.log(`hint: run ${name} init from inside a git repository.`); 83 + console.log(`hint: navigate to a git repository and run '${name} init' there.`); 84 + console.log(` to start fresh: git init && git remote add origin <your-repo-url>`); 84 85 } 85 86 return; 86 87 }
+2 -1
test/init.test.js
··· 141 141 expect(result.exitCode).toBe(0); 142 142 expect(result.stdout).toContain('status: not initialized'); 143 143 expect(result.stdout).toContain('git: false'); 144 - expect(result.stdout).toContain('hint: run vit init from inside a git repository'); 144 + expect(result.stdout).toContain("hint: navigate to a git repository and run 'vit init' there."); 145 + expect(result.stdout).toContain('to start fresh: git init && git remote add origin <your-repo-url>'); 145 146 }); 146 147 147 148 test('guides agent in fork repo with upstream and origin remotes', () => {