fsprojects / fsprojects/Paket

Git Dependencies, how to force paket to clone on master branch ?

Open
#2,706 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

git question
Dominant language
F#
Stars
2.1k
Forks
528
Avg merge
1d 12m
Merged PRs (30d)
54

Description

Hi,

As soon as I try to clone a git repository through my paket dependencies:

git http://minerva.toto.local:7990/scm/srcnettkt/api.git master

the local git repo is flaged "no branch"

git branch -vv
* (HEAD detached at paket/lock) 6e2bc8d Initial Commit
  master                        6e2bc8d [origin/master] Initial Commit

How to force paket to clone the master branch ?

Thanks

Gilles

Contributor guide

No contributing guide indexed for this repository

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 Paket's handling of the shown Git dependency declaration and reproduce the detached-HEAD state described in the issue. Determine whether cloning on master is supported or whether the current behavior is intentional; done means a verified answer or a focused change with a regression test.

Written by the indexing model from the issue text.

Assessment

Tech stack
fsharp, git
Domain
build-system, tooling
Issue type
Bug
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.