gitman icon indicating copy to clipboard operation
gitman copied to clipboard

Support for installing in "bare" with depth=1 and no .git folder

Open SamMousa opened this issue 4 years ago • 4 comments
trafficstars

Tools like npm have a special command for use in CI environments.

It would be great if gitman had something like this as well. It should install dependencies and remove the .git dirs so that we don't unnecessarily bloat our builds.

SamMousa avatar May 13 '21 13:05 SamMousa

Yeah, that sounds useful! How is this npm mode enabled?

jacebrowning avatar May 13 '21 17:05 jacebrowning

Separate command: npm ci

SamMousa avatar May 13 '21 18:05 SamMousa

Thanks!

I think I'd be in in favor of a command-line option that can be passed to both install and update.

-b / --bare perhaps.

jacebrowning avatar May 13 '21 18:05 jacebrowning

Builds should not be updating dependencies. Composer the PHP manager has some switches to get the oldest dependencies within constraints, this aids in testing.

It is never a good idea to call gitman update in CI.

SamMousa avatar May 13 '21 18:05 SamMousa