Git Product home page Git Product logo

Comments (2)

sanoursa avatar sanoursa commented on June 27, 2024

The warning is benign, so far as your gvfs clone is concerned. What's happening here is that you need to configure the server with some info that it needs to be able to respond to the /gvfs/config query. We are planning to change the server behavior so that it always returns a default response if you haven't configured anything, but that did not make it into RC2. I'll follow up shortly with more details about how to configure it yourself.

from vfsforgit.

alepauly avatar alepauly commented on June 27, 2024

@mrcaron: As sanoursa mentioned, we have a change in behavior in the pipeline so the default response will avoid that warning if you haven't configured anything explicitly. In the meantime, you can avoid the warning by configuring an all-encompassing version range on the server. The configuration of allowed GVFS client versions is done through the Git Repository Settings Policy, here are the steps to get that done (you'll need a REST client such as Postman):

  1. Check to make sure you don't have an existing Git Repository Settings Policy by running a GET to https://<host>/tfs/<collection>/<project>/_apis/policy/configurations and looking for any entries with type Id "7ed39669-655c-494e-b4a0-a08b4da0fcce".
  2. If there isn't an existing Git Repository Settings Policy then run a POST to https://<host>/tfs/<collection>/<project>/_apis/policy/configurations?api-version=3.1 with the following body (and application/json Content-Type):
{
	"isEnabled": true,
	"isBlocking": true,		
	"settings": {
		"scope": [{
			"repositoryId": null
		}],
		"gvfsAllowedVersionRanges": [{
				"min": {
					"major": 0,
					"minor": 0,
					"build": 0,
					"revision": 0
				},
				"max": null
			}
		]
	},
	"type": {
		"id": "7ed39669-655c-494e-b4a0-a08b4da0fcce",
		"displayName": "Git repository settings"
	}
}

Note that the Json above sets the scope of the policy to all repos in the project. If you want this to apply to a specific repo then you can get the repo Id by navigating to https://<host>/tfs/<collection>/<project>/_apis/git/repositories/<reponame> and substituting "repositoryId": null above with "repositoryId":<Guid>

  1. If there's an existing Git Repository Settings policy that is scoped to your repo (or project that the repo belongs to) then you won't be able to create a new one and instead you need to modify the existing one by running a PUT to https://<host>/tfs/<collection>/<project>/_apis/policy/configurations/<policy number>?api-version=3.1 with the whole body of the existing policy plus the "gvfsAllowedVersionRanges" element from the Json above.

Hope this helps, let me know if you have any questions.

from vfsforgit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.