Questions tagged [shallow-clone]

82 questions
0
votes
0 answers

ShallowCloning-Original Object doesnt gets affected

public class CreatingObjectusingCloneMethodShallowCloning implements Cloneable{ String name; int rollno; String housename; //Defining the clone method protected Object clone() throws CloneNotSupportedException { return…
0
votes
0 answers

What is the exact algorithm of `git --shallow-since`?

If I call git clone --shallow-since 2019-09-20 https://github.com/emacs-mirror/emacs.git I cannot access commit 56985dd8a6, although it is from 2019-09-21. Git stops at the red line in the following screenshot: I don’t understand the algorithm…
Torsten Bronger
  • 9,899
  • 7
  • 34
  • 41
0
votes
0 answers

What to do if clone is not updated when the original object is changed while using shallow cloning process in Java

I have created a cloned reference of an object in shallow cloning using Java. But when I update the object, the string stored in the referenced clone is not updated. why? The base class is, public class Base { String name; int price; public…
Pon Samuel
  • 11
  • 1
0
votes
1 answer

Enable GIT shallow clone in Cloudbees Jenkins

Is it possible to enable the shallow clone option for GIT in Cloudbees Jenkins? I am using Cloudbees Jenkins for my project. The client needs the shallow Clone option to be enabled. I couldn't find any option to do it.
Alla Sasikanth
  • 541
  • 3
  • 7
  • 22
0
votes
1 answer

can't deploy (checkout) code and branch still missing after shallow git fetch

I've made a quick setup of the repository: git init git remote add origin git@bitbucket.org:bbaccount/svgopt.git git fetch origin display-channel --depth 1 remote: Counting objects: 85, done. remote: Compressing objects: 100% (82/82), done. remote:…
msciwoj
  • 772
  • 7
  • 23
-1
votes
1 answer

What is the efficient way to shallow clone an object using JavaScript?

//function for creating a shallow object and remove the multiple spaces export const getTrimmedValues = (values) => { const shallowValues = { ...values, }; for (const key in shallowValues.primaryInformation) { const currentValue =…
-1
votes
1 answer

git shallow fetch not showing branches

I have previously done a git shallow clone with --depth 1 After that, I want to get a specific branch from the remote with a depth of 10 and checkout to that branch. I am able to fetch the branch from remote, but it the branch is not showing at git…
Rishikesh Raje
  • 8,556
  • 2
  • 16
  • 31
1 2 3 4 5
6