Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

`indo` fails when trying to add a local repo to "repos" without an origin

Đang mở
#24 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
git, nodejs, typescript
Lĩnh vực
cli

Hướng nghiên cứu

Tái hiện sự cố bằng cách làm theo các bước git-init được liệt kê, sau đó kiểm tra getRemoteUrl trong dist/core/git.js và hàm gọi nó trong dist/commands/default.js. Lệnh này phải xử lý một repository cục bộ không có origin mà không phát sinh sự cố nghiêm trọng khi chọn “Add to repos”.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

Steps to reproduce

  1. Create a sub-directory in a project that uses indo
  2. Run git init in that sub-directory
  3. Run indo and select "Add to repos"
  4. Witness a grotesque crash like this:
error: Error: fatal: No such remote 'origin'
    at exec (~/indo/node_modules/.pnpm/registry.npmjs.org/@cush/exec/1.6.2/node_modules/@cush/exec/index.js:88:21)
    at Function.execSync [as sync] (~/indo/node_modules/.pnpm/registry.npmjs.org/@cush/exec/1.6.2/node_modules/@cush/exec/index.js:11:10)
    at Object.getRemoteUrl (~/indo/dist/core/git.js:15:31)
    at findUnknownRepos (~/indo/dist/commands/default.js:75:36)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at async Object.exports.default (~/indo/dist/commands/default.js:24:5) {
  exitCode: 128
}
Ngôn ngữ chính
TypeScript
Star
18
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của alloc/indo

Tất cả issue của alloc/indo

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.