Unitech / Unitech/pm2

[Feature Request] Ability to specify where to find the .git folder

Open
#3,267 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

S: Open for PR SYS: Vizion T: Enhancement
Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

What's going wrong?

I cannot specify a different path for my .git folder, so I'm not able to see it when running pm2 ls.

How could we reproduce this issue?

When you use capistrano, you end up with a folder structure where you .git folder is not in the current path.
Check this line:
https://github.com/Unitech/pm2/blob/fd1f52d5e2413a5ad5ac7a52bbe9b5a14cc88732/lib/God.js#L444

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with lib/God.js at the linked line around 444 and trace how pm2 ls locates the .git folder. Check how Capistrano's folder structure differs from the current path. Done means providing a way to specify the alternate .git location and confirming that pm2 ls can find it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.